NotQuiteParadise2

Memory

class Memory(game: Game)[source]

Bases: object

Game related values that persist outside of individual “scenes”. E.g. achievements.

__init__(game: Game)[source]
add_flag(flag: str | Enum)[source]
check_for_flag(flag: str | Enum) bool[source]

Check if a flag exists

property game_speed: float
generate_id() int[source]

Create unique ID for an instance, such as a unit.

initialise_run(troupe: Troupe, gold: int, rations: int, morale: int, charisma: int, leadership: int)[source]

Initialise the run’s values.

remove_flag(flag: str | Enum)[source]
set_game_speed(speed: Union[float, nqp.core.constants.GameSpeed])[source]

Set the game speed. 1 is default.