Intent¶
-
_get_pressed_direction
(intent: InputIntentType) → DirectionType[source]¶ Get the value of the directions pressed. Returns as (x, y). Values are ints between -1 and 1.
-
_get_pressed_skills_name
(intent: InputIntentType) → Optional[str][source]¶ Get the pressed skill number. Returns value of skill number pressed. If not found returns None.
-
_process_game_map_intents
(intent: InputIntentType)[source]¶ Process intents for the player turn game state.
-
_process_skill_use
(player: int, skill: Type[scripts.engine.internal.action.Skill], target_tile: scripts.engine.world_objects.tile.Tile, direction: DirectionType)[source]¶ Process the use of specified skill. Wrapper for actions needed to handle a full skill use. Assumed ‘can_use_skill’ already completed.
-
_process_stateless_intents
(intent: InputIntentType)[source]¶ Process intents that don’t rely on game state.
-
process_intent
(intent: InputIntentType, game_state: Optional[scripts.engine.internal.constant.GameState] = None)[source]¶ Process the intent in the context of the game state. Intents are game state sensitive. If no game state is passed the current one will be obtained.