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