build-all-windows.bat
By: a guest | Sep 5th, 2010 | Syntax:
None | Size: 1.99 KB | Hits: 28 | Expires: Never
#ifndef _MAP_H_
#define _MAP_H_
#include <Config.h>
#include <Map/TileGroup.h>
#include <Map/Entity.h>
#include <Map/WayPoint.h>
#include <vector>
namespace OpenMFormatLib
{
class Map
{
public:
Map();
virtual ~Map();
std::string getMapName() { return m_Name; }
void setMapName(const std::string& value) { m_Name = value; }
std::string getAuthor() { return m_Author; }
void setAuthor(const std::string& value) { m_Author = value; }
std::string getComment() { return m_Comment; }
void setComment(const std::string& value) { m_Comment = value; }
double getLastModified() { return m_LastModified; }
void setLastModified(double value) { m_LastModified = value; }
Entity* getEntity(Int32 id) { return m_Entities[id];}
void setEntity(Int32 id, Entity* value) { m_Entities[id] = value;}
TileGroup* getTileGroup(Int32 id) { return m_TileGroups[id; }
void setTileGroup(Int32 id, TileGroup* value) { m_TileGroups[id] = value; }
WayPoint* getWayPoint(Int32 id) { return m_WayPoints[id; }
void setWayPoint(Int32 id, WayPoint* value) { m_WayPoints[id] = value; }
void addEntity(Entity* value) { m_Entitys.push_back(value); }
void removeEntity(Entity* value);
void addTileGroup(TileGroup* value) { m_TileGroups.push_back(value); }
void removeTileGroup(TileGroup* value);
void addWayPoint(WayPoint* value) { m_WayPoints.push_back(value); }
void removeWayPoint(WayPoint* value);
protected:
private:
std::string m_Name;
std::string m_Author;
std::string m_Comment;
double m_LastModified;
std::vector<Entity*> m_Entities;
std::vector<TileGroup*> m_TileGroups;
std::vector<WayPoint*> m_WayPoints;
};
}
#endif // _MAP_H_