2005-05-12 22:59:22 +02:00
|
|
|
#ifndef __MAP_H__
|
|
|
|
#define __MAP_H__
|
2005-05-12 07:16:59 +02:00
|
|
|
|
|
|
|
typedef int TerrainId;
|
|
|
|
|
|
|
|
class Map {
|
|
|
|
public:
|
|
|
|
int size;
|
|
|
|
TerrainId** terrain;
|
|
|
|
std::map<std::string, int> nameToId;
|
|
|
|
std::map<int, std::string> idToName;
|
|
|
|
|
|
|
|
Map(int size, std::string baseTerrain);
|
|
|
|
~Map();
|
|
|
|
|
|
|
|
TerrainId getId(std::string terrain);
|
2005-05-12 22:59:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|