Changeset 62ee2ce in network-game for common/WorldMap.h
- Timestamp:
- Feb 5, 2013, 7:02:32 PM (12 years ago)
- Branches:
- master
- Children:
- 384b7e0, 60017fc
- Parents:
- 60b77d2
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
common/WorldMap.h
r60b77d2 r62ee2ce 1 #ifndef _ MAP_H2 #define _ MAP_H1 #ifndef _WORLDMAP_H 2 #define _WORLDMAP_H 3 3 4 4 #include <vector> … … 6 6 using namespace std; 7 7 8 class Map {8 class WorldMap { 9 9 public: 10 10 enum TerrainType { 11 11 TERRAIN_NONE, 12 12 TERRAIN_GRASS, 13 TERRAIN_OCEAN 13 TERRAIN_OCEAN, 14 TERRAIN_ROCK 14 15 }; 15 16 … … 17 18 vector<vector<TerrainType>*>* vctMap; 18 19 19 Map(int width, int height);20 WorldMap(int width, int height); 20 21 21 ~ Map();22 ~WorldMap(); 22 23 24 TerrainType getElement(int x, int y); 23 25 void setElement(int x, int y, TerrainType type); 24 26 25 static Map* createDefaultMap();27 static WorldMap* createDefaultMap(); 26 28 }; 27 29
Note:
See TracChangeset
for help on using the changeset viewer.