stratega.TechnologyTreeType

class stratega.TechnologyTreeType

Contains the definition of a technology tree type.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

exists_technology_node(self, technologyName)

Checks if a technology with a given name exists in this tree.

exists_technology_tree_node(self, technologyID)

Checks if a given technology ID exists in this tree.

getTechnology_node_id(self, technologyName)

Returns the ID of a technology that matches the requested name.

get_technology_node(self, technologyID)

Returns a tech tree node from this tree with a corresponding technology ID.

Attributes

technologies

Data of this tech tree, each entry contains and ID as key and a technology node as a value

technology_tree_name

Name of this technology tree