State

dump_save_game()[source]

Export the save game data, if it exists, to an external json file

get_active_skill()str[source]

Get the active skill. Used for targeting mode.

get_active_skill_target()Tuple[int, int][source]

Get the active skill target. Used for targeting mode.

get_current()scripts.engine.internal.constant.GameState[source]

Get the current game state

get_internal_clock()[source]

Get the internal clock

get_previous()scripts.engine.internal.constant.GameState[source]

Get the previous game state

get_skill_target_valid()bool[source]

Get the validity of the current target. Used for targeting mode.

initialise_engine()[source]

Initialise engine resources.

N.B. Must be called before using the rest of the engine.

load_game(filename: str)[source]

Deserialise the game data from a file. Filename does not include path to save folder.

save_game()[source]

Serialise the game data to an internal container

set_active_skill(skill_name: str)[source]

Set the active skill. Used for targeting mode.

set_active_skill_target(skill_target: Tuple[int, int])[source]

Set the active skill target. Used for targeting mode.

set_new(new_game_state: scripts.engine.internal.constant.GameState)[source]

Set the current game state

set_skill_target_valid(skill_target_valid: bool)[source]

Set the validity of the current target. Used for targeting mode.

update_clock()float[source]

Tick the internal clock. Manages the frame rate. Returns delta time.