OrodaelTurrim.Structure package¶
Subpackages¶
- OrodaelTurrim.Structure.Actions package
- Submodules
- OrodaelTurrim.Structure.Actions.Abstract module
- OrodaelTurrim.Structure.Actions.Combat module
- OrodaelTurrim.Structure.Actions.Effect module
- OrodaelTurrim.Structure.Actions.Log module
- OrodaelTurrim.Structure.Actions.Placement module
- OrodaelTurrim.Structure.Actions.Resources module
- OrodaelTurrim.Structure.Actions.Terrain module
- OrodaelTurrim.Structure.Actions.Turn module
- Module contents
- OrodaelTurrim.Structure.GameObjects package
Submodules¶
OrodaelTurrim.Structure.Enums module¶
OrodaelTurrim.Structure.Exceptions module¶
-
exception
OrodaelTurrim.Structure.Exceptions.BadActionBaseParameters[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionActionBase method has bad parameters
-
exception
OrodaelTurrim.Structure.Exceptions.BadFactDataValue[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionFact contain bad value type
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalActionException[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionYou try to use illegal action on the game engine
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalArgumentException[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionIllegal argument passed to object initialization
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalConfigState[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionSomething missing in game config file
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalHistoryOperation[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionTrying to do illegal operation when in Browsing mode
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalLogMessage[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionYou are trying to log message which is not correct type
-
exception
OrodaelTurrim.Structure.Exceptions.IllegalRulesFormat[source]¶ Bases:
OrodaelTurrim.Structure.Exceptions.OrodaelTurrimExceptionProblem with parsing rules file
OrodaelTurrim.Structure.Map module¶
OrodaelTurrim.Structure.Position module¶
OrodaelTurrim.Structure.Resources module¶
OrodaelTurrim.Structure.Terrain module¶
-
class
OrodaelTurrim.Structure.Terrain.Field[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing field on map. This to horizon stretching plane of yellow crop provides neither bonuses nor penalties. Just an opportunity to ruin another harvest.
-
get_move_cost(target: TerrainType) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.Forest[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing ever green forest. The shadows of the trees provide shelter from enemy arrows and the bushes make excellent place for an ambush. However, entering the forest might prove bit exhausting.
-
get_move_cost(target: OrodaelTurrim.Structure.Terrain.Terrain) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.Hill[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing little hill. Someone kept on throwing piles of dirt here and now look, there is a hill.
-
get_move_cost(target: TerrainType) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.Mountain[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing pointy rock giants. Everyone who tried climbing those knows, it is not a piece of cake. On the other hand, they provide great place to stay safe, since nobody wants to climb them either.
-
compute_damage(hit_points: float)[source]¶ Computes, how much damage will this terrain inflict on start of each turn
Parameters: hit_points – Previous value of hit points of game object Returns: Amount of damage to be inflicted to game object
-
get_move_cost(target: TerrainType) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.River[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing mass of water. Does not matter if it´s river, lake or pond, nobody wants to get wet. Especially not Larry (he cannot swim).
-
get_move_cost(target: TerrainType) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.Terrain[source]¶ Bases:
abc.ABCAbstract class for terrain types.
-
affect_attribute(attribute: AttributeType, original_value: Union[int, float]) → Union[float, int][source]¶ Provides affected value of specified attribute by this terrain
Parameters: - attribute – Type of attribute, which should be affected
- original_value – Original value of affected attribute
Returns: Affected value of specified attribute by this terrain
-
compute_damage(hit_points: float) → float[source]¶ Computes, how much damage will this terrain inflict on start of each turn
Parameters: hit_points – Previous value of hit points of game object Returns: Amount of damage to be inflicted to game object
-
get_move_cost(target: TerrainType) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
-
class
OrodaelTurrim.Structure.Terrain.Village[source]¶ Bases:
OrodaelTurrim.Structure.Terrain.TerrainClass representing little village in the countryside. Few huts, church and pub - everything a simple adventurer would need and even more!
-
get_move_cost(target: OrodaelTurrim.Structure.Terrain.Terrain) → int[source]¶ Get move cost of the terrain based current terrain type and target terrain type. Move cost have value based on target and source terrain type
Parameters: target – target terrain type Returns: action cost
-
get_remaining_sigh(current_sight: int) → int[source]¶ Get remaining sight after current terrain type
Parameters: current_sight – current sight number Returns: remaining sight
-
terrain_type¶
-
OrodaelTurrim.Structure.TypeStrucutre module¶
-
class
OrodaelTurrim.Structure.TypeStrucutre.DoubleLinkedList[source]¶ Bases:
objectStructure for store double linked list
-
head¶ Get reference to head Node
-
pointer¶ Get pointed Node reference
-
tail¶ Get reference to tail Node
-
value¶ Return value of the pointer Node. Raise exception if pointer is not set
-