stratega.GameInfo

class stratega.GameInfo

Contains all the type information used by the game. It have different methods to get the different types: parameter, entity, action… The agent can access to the yaml path where the game configuration is defined.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

check_entity_have_parameter(self, ...)

Returns true if the entity type has the searched parameter

get_action_type(self, typeID)

Returns the action type.

get_action_type_const(self, actionTypeID)

Returns the action type.

get_action_type_id(self, actionName)

Returns the action type ID.

get_action_types(self)

get_buff_type(self, buffTypeID)

Returns the buff type by ID.

get_buff_types(self)

get_entity_groups(self)

get_entity_type(self, entityTypeID)

Returns the entity type.

get_entity_types(self)

get_game_description(self)

Returns the game description of the game.

get_parameter_global_id(self, parameterName)

Returns the ID of the parameter.

get_parameter_id_lookup(self)

get_parameter_type(self, entityTypeID, ...)

Returns the parameter type from a entityType.

get_player_parameter_types(self)

get_player_spawnable_types(self)

get_tech_trees_ids(self)

Returns the IDs of the tech trees of this game.

get_technology(self, technologyID)

Returns the action type.

get_technology_counts(self)

Returns a map of tuples with the tree ID and how many technologies each has.

get_technology_tree_collection(self)

get_technology_type_id(self, technologyName)

Returns the ID of a technology that matches the requested name, in any of the trees of the tree collection.

get_tile_type(self, tileTypeID)

Returns the tile type.

get_tile_types(self)

get_tree_nodes(self, techTreeID)

Returns a list with all technologies of a given tree, specified by its ID

get_yaml_path(self)

set_entity_groups(self, tg)

set_technology_tree_collection(self, tt)

set_yaml_path(self, path)