Share Pastebin
Guest
Public paste!

build-all-windows.bat

By: a guest | Sep 5th, 2010 | Syntax: None | Size: 1.99 KB | Hits: 28 | Expires: Never
Copy text to clipboard
  1. #ifndef _MAP_H_
  2. #define _MAP_H_
  3. #include <Config.h>
  4. #include <Map/TileGroup.h>
  5. #include <Map/Entity.h>
  6. #include <Map/WayPoint.h>
  7. #include <vector>
  8.  
  9. namespace OpenMFormatLib
  10. {
  11.     class Map
  12.     {
  13.     public:
  14.         Map();
  15.         virtual ~Map();
  16.  
  17.  
  18.         std::string getMapName() { return m_Name; }
  19.         void        setMapName(const std::string& value) { m_Name = value; }
  20.  
  21.         std::string getAuthor()  { return m_Author; }
  22.         void        setAuthor(const std::string& value) { m_Author = value; }
  23.  
  24.         std::string getComment() { return m_Comment; }
  25.         void        setComment(const std::string& value) { m_Comment = value; }
  26.  
  27.         double      getLastModified() { return m_LastModified; }
  28.         void        setLastModified(double value) { m_LastModified = value; }
  29.  
  30.         Entity*     getEntity(Int32 id) { return m_Entities[id];}
  31.         void        setEntity(Int32 id, Entity* value) { m_Entities[id] = value;}
  32.  
  33.         TileGroup*  getTileGroup(Int32 id) { return m_TileGroups[id; }
  34.         void        setTileGroup(Int32 id, TileGroup* value) { m_TileGroups[id] = value; }
  35.  
  36.         WayPoint*   getWayPoint(Int32 id) { return m_WayPoints[id; }
  37.         void        setWayPoint(Int32 id, WayPoint* value) { m_WayPoints[id] = value; }
  38.  
  39.         void        addEntity(Entity* value) { m_Entitys.push_back(value); }
  40.         void        removeEntity(Entity* value);
  41.  
  42.         void        addTileGroup(TileGroup* value) { m_TileGroups.push_back(value); }
  43.         void        removeTileGroup(TileGroup* value);
  44.  
  45.         void        addWayPoint(WayPoint* value) { m_WayPoints.push_back(value); }
  46.         void        removeWayPoint(WayPoint* value);
  47.  
  48.     protected:
  49.     private:
  50.         std::string m_Name;
  51.         std::string m_Author;
  52.         std::string m_Comment;
  53.         double      m_LastModified;
  54.         std::vector<Entity*>    m_Entities;
  55.         std::vector<TileGroup*> m_TileGroups;
  56.         std::vector<WayPoint*>  m_WayPoints;
  57.     };
  58. }
  59.  
  60. #endif // _MAP_H_