style: canviar border_ a enum class

This commit is contained in:
2025-03-20 14:06:58 +01:00
parent 68c97610fb
commit f438e8946b
6 changed files with 32 additions and 28 deletions

View File

@@ -23,6 +23,15 @@ enum class TileType
ANIMATED
};
enum class RoomBorder : int
{
TOP = 0,
RIGHT = 1,
BOTTOM = 2,
LEFT = 3
};
struct AnimatedTile
{
std::shared_ptr<SSprite> sprite; // SSprite para dibujar el tile
@@ -179,7 +188,7 @@ public:
void update();
// Devuelve la cadena del fichero de la habitación contigua segun el borde
std::string getRoom(int border);
std::string getRoom(RoomBorder border);
// Devuelve el tipo de tile que hay en ese pixel
TileType getTile(SDL_Point point);