This commit is contained in:
parent
b35617dd9a
commit
c634faf7b8
18 changed files with 698 additions and 236 deletions
|
@ -27,16 +27,33 @@ public:
|
|||
CMap(){};
|
||||
~CMap(){};
|
||||
|
||||
int GetWidth() {return(Map.size());}
|
||||
int GetHeight() {return(Map[0].size());}
|
||||
int GetWidth();
|
||||
int GetHeight();
|
||||
BOOL IsValid() {return(GetHeight());}
|
||||
|
||||
void SetSize(int Width,int Height,BOOL Clear=FALSE);
|
||||
void SetWidth(int Width);
|
||||
void SetHeight(int Height);
|
||||
void Clear();
|
||||
void Delete();
|
||||
void MirrorX(int Flag);
|
||||
void MirrorY(int Flag);
|
||||
|
||||
sMapElem &GetTile(int X,int Y);
|
||||
void SetTile(int X,int Y,sMapElem &New);
|
||||
sMapElem &Get(int X,int Y);
|
||||
void Set(int X,int Y,sMapElem &Blk);
|
||||
void Set(int X,int Y,CMap &Blk);
|
||||
void Set(CMap &Src,int StartX,int StartY,int Width,int Height);
|
||||
|
||||
BOOL DoesContainTile(sMapElem &Tile);
|
||||
|
||||
inline void operator=(CMap &Src)
|
||||
{
|
||||
int Width=Src.GetWidth();
|
||||
int Height=Src.GetHeight();
|
||||
Delete();
|
||||
SetSize(Width,Height);
|
||||
Set(Src,0,0,Width,Height);
|
||||
}
|
||||
|
||||
protected:
|
||||
std::vector< std::vector<sMapElem> > Map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue