diff --git a/game/include/Map.hpp b/game/include/Map.hpp index 01efd78..84d667f 100644 --- a/game/include/Map.hpp +++ b/game/include/Map.hpp @@ -1,48 +1,50 @@ #pragma once #include -#include + #include -#include #include +#include +#include -using tileArray = boost::multi_array; -using entityMap = std::map; +using tileArray = boost::multi_array; +using entityMap = std::map; class Map { - private: - uint16_t id_; - uint8_t currentType_; - std::string mapName_; - std::string bitmapName_; - tileArray tiles_; - entityMap entities_; - - public: - Map(); - Map(const uint16_t& id, const uint8_t& currentType, const std::string& mapName, const std::string& bitmapName, const tileArray& tiles, const uint16_t& dimensionX, const uint16_t& dimensionY, - const entityMap& entities); - ~Map(); - - void setId(const uint16_t& id); - void setCurrentType(const uint8_t& currentType); - void setMapName(const std::string& mapName); - void setBitmapName(const std::string& bitmapName); - void setTiles(const tileArray tiles, const uint16_t& dimensionX, const uint16_t& dimensionY); - void setEntities(const entityMap& entities); - void setTile(const utils::Coordinate& coordinate, const Tile& tile); - - const uint16_t getId(); - const uint8_t getCurrentType(); - const std::string getMapName(); - const std::string getBitmapName(); - const tileArray getTiles(); - const entityMap getEntities(); - - void swapTiles(Tile tile1, Tile Tile2); - - bool doesItCollide(const tils::Coordinate& coordinate, const uint8_t& direction); - bool doesItInteract(const utils::Coordinate& coordinate, const uint8_t& direction); - bool isPokemonBattleTriggered(); - bool isTrainerBattleTriggered(); + private: + uint16_t id_; + uint8_t current_type_; + std::string map_name_; + std::string bitmap_name_; + tileArray tiles_; + entityMap entities_; + + public: + + Map(); + Map(const uint16_t &id, const uint8_t ¤t_type, const std::string &map_name, const std::string &bitmap_name, const tileArray &tiles, const uint16_t &dimensionX, const uint16_t &dimensionY, const entityMap &entities); + ~Map(); + + void setId(const uint16_t &id); + void setCurrentType(const uint8_t ¤t_type); + void setMapName(const std::string &map_name); + void setBitmapName(const std::string &bitmap_name); + void setTiles(const tileArray tiles, const uint16_t &dimensionX, const uint16_t &dimensionY); + void setEntities(const entityMap &entities); + void setTile(const utils::Coordinate &coordinate, const Tile &tile); + + const uint16_t getId(); + const uint8_t getCurrentType(); + const std::string getMapName(); + const std::string getBitmapName(); + const tileArray getTiles(); + const entityMap getEntities(); + + void swapTiles(Tile tile1, Tile Tile2); + + bool doesItCollide(const tils::Coordinate &coordinate, const uint8_t &direction); + bool doesItInteract(const utils::Coordinate &coordinate, const uint8_t &direction); + bool isPokemonBattleTriggered(); + bool isTrainerBattleTriggered(); + } \ No newline at end of file