00001 #ifndef UMPTILE_H_ 00002 #define UMPTILE_H_ 00003 00004 #include <string> 00005 00006 namespace map 00007 { 00008 namespace ump 00009 { 00015 class UMPTile 00016 { 00017 private: 00018 00019 // width of the tile + 2. 00020 // The units are not the world units here, but one unit in ump is about 128 world units 00021 // + 2 because you also define the boundaries of a tile 00022 int _width; 00023 00024 // height of the tile + 2. 00025 // The units are not the world units here, but one unit in ump is about 128 world units 00026 // + 2 because you also define the boundaries of a tile 00027 int _height; 00028 00029 std::string _mapName; 00030 00031 private: 00032 00033 public: 00034 00035 UMPTile (std::string& mapName, int width, int height); 00036 00037 virtual ~UMPTile (); 00038 00043 std::string toString (const std::string& base); 00044 00045 const std::string getTileName (const std::string& base) const; 00046 }; 00047 } 00048 } 00049 00050 #endif /* UMPTILE_H_ */