yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::zelda3::GameEntity Class Referenceabstract

Base class for all overworld and dungeon entities. More...

#include <common.h>

Inheritance diagram for yaze::app::zelda3::GameEntity:

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_
 

Detailed Description

Base class for all overworld and dungeon entities.

Definition at line 35 of file common.h.

Member Enumeration Documentation

◆ EntityType

Enumerator
kEntrance 
kExit 
kItem 
kSprite 
kTransport 
kMusic 
kTilemap 
kProperties 
kDungeonSprite 

Definition at line 37 of file common.h.

Constructor & Destructor Documentation

◆ GameEntity()

yaze::app::zelda3::GameEntity::GameEntity ( )
default

Member Function Documentation

◆ set_x()

auto yaze::app::zelda3::GameEntity::set_x ( int x)
inline

Definition at line 55 of file common.h.

References x_.

Referenced by yaze::app::editor::MoveEntityOnGrid().

◆ set_y()

auto yaze::app::zelda3::GameEntity::set_y ( int y)
inline

Definition at line 56 of file common.h.

References y_.

Referenced by yaze::app::editor::MoveEntityOnGrid().

◆ UpdateMapProperties()

virtual void yaze::app::zelda3::GameEntity::UpdateMapProperties ( uint16_t map_id)
pure virtual

Member Data Documentation

◆ entity_type_

◆ x_

◆ y_

◆ game_x_

int yaze::app::zelda3::GameEntity::game_x_

Definition at line 50 of file common.h.

◆ game_y_

int yaze::app::zelda3::GameEntity::game_y_

Definition at line 51 of file common.h.

◆ entity_id_

◆ map_id_


The documentation for this class was generated from the following file: