source: network-game/common/Map.h@ 60b77d2

Last change on this file since 60b77d2 was 60b77d2, checked in by dportnoy <dmp1488@…>, 12 years ago

Added a Map class

  • Property mode set to 100644
File size: 389 bytes
Line 
1#ifndef _MAP_H
2#define _MAP_H
3
4#include <vector>
5
6using namespace std;
7
8class Map {
9public:
10 enum TerrainType {
11 TERRAIN_NONE,
12 TERRAIN_GRASS,
13 TERRAIN_OCEAN
14 };
15
16 int width, height;
17 vector<vector<TerrainType>*>* vctMap;
18
19 Map(int width, int height);
20
21 ~Map();
22
23 void setElement(int x, int y, TerrainType type);
24
25 static Map* createDefaultMap();
26};
27
28#endif
Note: See TracBrowser for help on using the repository browser.