Refactor OverworldEntity to use uint16_t for map_id and improve code organization
This commit is contained in:
@@ -6,7 +6,7 @@ namespace yaze {
|
||||
namespace app {
|
||||
namespace zelda3 {
|
||||
|
||||
void Sprite::UpdateMapProperties(short map_id) {
|
||||
void Sprite::UpdateMapProperties(uint16_t map_id) {
|
||||
map_x_ = x_;
|
||||
map_y_ = y_;
|
||||
name_ = kSpriteDefaultNames[id_];
|
||||
|
||||
@@ -328,7 +328,7 @@ class Sprite : public OverworldEntity {
|
||||
bool mirror_x = false, bool mirror_y = false,
|
||||
int sizex = 2, int sizey = 2);
|
||||
|
||||
void UpdateMapProperties(short map_id) override;
|
||||
void UpdateMapProperties(uint16_t map_id) override;
|
||||
|
||||
// New methods
|
||||
void UpdateCoordinates(int map_x, int map_y);
|
||||
|
||||
Reference in New Issue
Block a user