Changeset a1a3bd5 in network-game for common/WorldMap.h
- Timestamp:
- Apr 23, 2013, 1:31:54 AM (12 years ago)
- Branches:
- master
- Children:
- 227baaa
- Parents:
- 054b50b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/WorldMap.h
r054b50b ra1a3bd5 17 17 }; 18 18 19 enum ObjectType { 20 OBJECT_NONE, 21 OBJECT_RED_FLAG, 22 OBJECT_BLUE_FLAG 23 }; 24 19 25 int width, height; 20 26 vector<vector<TerrainType>*>* vctMap; 27 vector<vector<ObjectType>*>* vctObjects; 21 28 22 29 WorldMap(int width, int height); … … 27 34 void setElement(int x, int y, TerrainType type); 28 35 36 ObjectType getObject(int x, int y); 37 void setObject(int x, int y, ObjectType type); 38 29 39 static WorldMap* createDefaultMap(); 30 40 static WorldMap* loadMapFromFile(string filename);
Note:
See TracChangeset
for help on using the changeset viewer.