OrodaelTurrim.Structure.Actions package

Submodules

OrodaelTurrim.Structure.Actions.Abstract module

class OrodaelTurrim.Structure.Actions.Abstract.GameAction(game_engine: GameEngine)[source]

Bases: abc.ABC

Core class defining methods for game actions (history marks)

TIME_STAMP_FORMAT = '%H:%M:%S'
execute() → None[source]

Executes given game action

text

Returns text representation of this game action to show, what happened

undo() → None[source]

Undoes any effects, which this game action caused effectively returning game to the state before this action happened

xml(parent: xml.etree.ElementTree.Element) → _elementtree.SubElement[source]

Convert action to XML tag

OrodaelTurrim.Structure.Actions.Combat module

OrodaelTurrim.Structure.Actions.Effect module

OrodaelTurrim.Structure.Actions.Log module

class OrodaelTurrim.Structure.Actions.Log.LogAction(game_engine: GameEngine, log_message: str)[source]

Bases: OrodaelTurrim.Structure.Actions.Abstract.GameAction

User custom log action

execute() → None[source]

Executes given game action

text

Returns text representation of this game action to show, what happened

undo() → None[source]

Undoes any effects, which this game action caused effectively returning game to the state before this action happened

xml(parent) → _elementtree.SubElement[source]

Convert action to XML tag

OrodaelTurrim.Structure.Actions.Placement module

OrodaelTurrim.Structure.Actions.Resources module

OrodaelTurrim.Structure.Actions.Terrain module

OrodaelTurrim.Structure.Actions.Turn module

Module contents