Translates raw user input into high-level Overworld commands. More...
#include <interaction_coordinator.h>

Public Member Functions | |
| OverworldInteractionCoordinator (OverworldCommandSink sink) | |
| void | Update (zelda3::GameEntity *hovered_entity=nullptr) |
| Polls for keyboard shortcuts and mouse interactions. Triggers callbacks in the CommandSink when appropriate. | |
Private Attributes | |
| OverworldCommandSink | sink_ |
Translates raw user input into high-level Overworld commands.
This class is narrowly scoped to input-to-command translation. It does not own editor state or perform domain mutations.
Definition at line 55 of file interaction_coordinator.h.
|
explicit |
Definition at line 8 of file interaction_coordinator.cc.
| void yaze::editor::OverworldInteractionCoordinator::Update | ( | zelda3::GameEntity * | hovered_entity = nullptr | ) |
Polls for keyboard shortcuts and mouse interactions. Triggers callbacks in the CommandSink when appropriate.
Definition at line 12 of file interaction_coordinator.cc.
References yaze::editor::OverworldCommandSink::can_edit_items, yaze::editor::DRAW_TILE, yaze::editor::ENTRANCES, yaze::editor::EXITS, yaze::editor::ITEMS, yaze::editor::MOUSE, yaze::editor::MUSIC, yaze::editor::OverworldCommandSink::on_activate_fill, yaze::editor::OverworldCommandSink::on_duplicate_selected, yaze::editor::OverworldCommandSink::on_entity_context_menu, yaze::editor::OverworldCommandSink::on_entity_double_click, yaze::editor::OverworldCommandSink::on_nudge_selected, yaze::editor::OverworldCommandSink::on_pick_tile_from_hover, yaze::editor::OverworldCommandSink::on_redo, yaze::editor::OverworldCommandSink::on_set_editor_mode, yaze::editor::OverworldCommandSink::on_set_entity_mode, yaze::editor::OverworldCommandSink::on_toggle_brush, yaze::editor::OverworldCommandSink::on_toggle_fullscreen, yaze::editor::OverworldCommandSink::on_toggle_item_list, yaze::editor::OverworldCommandSink::on_toggle_lock, yaze::editor::OverworldCommandSink::on_toggle_tile16_editor, yaze::editor::OverworldCommandSink::on_undo, sink_, yaze::editor::SPRITES, and yaze::editor::TRANSPORTS.
|
private |
Definition at line 66 of file interaction_coordinator.h.
Referenced by Update().