SBSPSS/Utils/MapEdit/Map.h

42 lines
764 B
C
Raw Normal View History

2000-11-02 16:46:17 +01:00
/******************/
/*** Map Stuph ***/
/*****************/
#ifndef __MAP_HEADER__
#define __MAP_HEADER__
#include <Vector>
struct sMapElem
{
2000-11-15 22:22:40 +01:00
int Set;
2000-11-02 16:46:17 +01:00
int Tile;
int Flags;
};
/*****************************************************************************/
class CMap
{
public:
CMap(){};
~CMap(){};
2000-11-15 22:22:40 +01:00
int GetWidth() {return(Map.size());}
int GetHeight() {return(Map[0].size());}
2000-11-02 16:46:17 +01:00
2000-11-15 22:22:40 +01:00
void SetSize(int Width,int Height,BOOL Clear=FALSE);
2000-11-03 23:40:41 +01:00
void SetWidth(int Width);
void SetHeight(int Height);
2000-11-15 22:22:40 +01:00
void Clear();
2000-11-03 23:40:41 +01:00
2000-11-15 22:22:40 +01:00
sMapElem &GetTile(int X,int Y);
void SetTile(int X,int Y,sMapElem &New);
2000-11-02 16:46:17 +01:00
protected:
std::vector< std::vector<sMapElem> > Map;
};
/*****************************************************************************/
#endif