babylon.data.models.event
Event model for handling game events and their effects.
Classes
|
Represents a game event that can occur based on certain conditions. |
- class babylon.data.models.event.Event(**kwargs)[source]
Bases:
BaseRepresents a game event that can occur based on certain conditions.
Events can have effects, triggers, and consequences.
- check_triggers(game_state)[source]
Check if this event’s triggers are met in the current game state.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.