Base class for all overworld and dungeon entities. More...
#include <common.h>
Public Types | |
enum | EntityType { kEntrance = 0 , kExit = 1 , kItem = 2 , kSprite = 3 , kTransport = 4 , kMusic = 5 , kTilemap = 6 , kProperties = 7 , kDungeonSprite = 8 } |
Public Member Functions | |
auto | set_x (int x) |
auto | set_y (int y) |
GameEntity ()=default | |
virtual void | UpdateMapProperties (uint16_t map_id)=0 |
Public Attributes | |
enum yaze::app::zelda3::GameEntity::EntityType | entity_type_ |
int | x_ |
int | y_ |
int | game_x_ |
int | game_y_ |
int | entity_id_ |
uint16_t | map_id_ |
|
default |
|
inline |
Definition at line 55 of file common.h.
References x_.
Referenced by yaze::app::editor::MoveEntityOnGrid().
|
inline |
Definition at line 56 of file common.h.
References y_.
Referenced by yaze::app::editor::MoveEntityOnGrid().
|
pure virtual |
enum yaze::app::zelda3::GameEntity::EntityType yaze::app::zelda3::GameEntity::entity_type_ |
Referenced by yaze::app::editor::HandleEntityDragging(), yaze::app::zelda3::Sprite::InitSprite(), yaze::app::zelda3::overworld::OverworldEntrance::OverworldEntrance(), yaze::app::zelda3::overworld::OverworldExit::OverworldExit(), yaze::app::zelda3::overworld::OverworldItem::OverworldItem(), and yaze::app::zelda3::Sprite::Sprite().
int yaze::app::zelda3::GameEntity::x_ |
Definition at line 48 of file common.h.
Referenced by yaze::app::editor::DrawExitEditorPopup(), yaze::app::editor::DrawOverworldEntrancePopup(), yaze::app::editor::HandleEntityDragging(), yaze::app::zelda3::Sprite::InitSprite(), yaze::app::editor::IsMouseHoveringOverEntity(), yaze::app::zelda3::overworld::OverworldEntrance::OverworldEntrance(), yaze::app::zelda3::overworld::OverworldExit::OverworldExit(), yaze::app::zelda3::overworld::OverworldItem::OverworldItem(), set_x(), yaze::app::zelda3::Sprite::Sprite(), yaze::app::zelda3::Sprite::Sprite(), yaze::app::zelda3::overworld::OverworldEntrance::UpdateMapProperties(), yaze::app::zelda3::overworld::OverworldExit::UpdateMapProperties(), yaze::app::zelda3::overworld::OverworldItem::UpdateMapProperties(), yaze::app::zelda3::Sprite::UpdateMapProperties(), and yaze::app::zelda3::Sprite::x().
int yaze::app::zelda3::GameEntity::y_ |
Definition at line 49 of file common.h.
Referenced by yaze::app::editor::DrawExitEditorPopup(), yaze::app::editor::DrawOverworldEntrancePopup(), yaze::app::editor::HandleEntityDragging(), yaze::app::zelda3::Sprite::InitSprite(), yaze::app::editor::IsMouseHoveringOverEntity(), yaze::app::zelda3::overworld::OverworldEntrance::OverworldEntrance(), yaze::app::zelda3::overworld::OverworldExit::OverworldExit(), yaze::app::zelda3::overworld::OverworldItem::OverworldItem(), set_y(), yaze::app::zelda3::Sprite::Sprite(), yaze::app::zelda3::Sprite::Sprite(), yaze::app::zelda3::overworld::OverworldEntrance::UpdateMapProperties(), yaze::app::zelda3::overworld::OverworldExit::UpdateMapProperties(), yaze::app::zelda3::overworld::OverworldItem::UpdateMapProperties(), yaze::app::zelda3::Sprite::UpdateMapProperties(), and yaze::app::zelda3::Sprite::y().
int yaze::app::zelda3::GameEntity::entity_id_ |
Definition at line 52 of file common.h.
Referenced by yaze::app::editor::DrawExitEditorPopup(), yaze::app::editor::OverworldEditor::DrawOverworldExits(), yaze::app::editor::HandleEntityDragging(), yaze::app::zelda3::Sprite::InitSprite(), yaze::app::zelda3::overworld::OverworldEntrance::OverworldEntrance(), yaze::app::zelda3::overworld::OverworldItem::OverworldItem(), and yaze::app::zelda3::Sprite::Sprite().
uint16_t yaze::app::zelda3::GameEntity::map_id_ |
Definition at line 53 of file common.h.
Referenced by yaze::app::editor::DrawExitEditorPopup(), yaze::app::editor::DrawOverworldEntrancePopup(), yaze::app::editor::HandleEntityDragging(), yaze::app::zelda3::overworld::OverworldEntrance::OverworldEntrance(), yaze::app::zelda3::overworld::OverworldExit::OverworldExit(), yaze::app::zelda3::overworld::OverworldItem::OverworldItem(), yaze::app::zelda3::overworld::OverworldEntrance::UpdateMapProperties(), and yaze::app::zelda3::overworld::OverworldExit::UpdateMapProperties().