Changeset 5f868c0 in network-game for common/WorldMap.h
- Timestamp:
- May 22, 2013, 10:34:42 PM (12 years ago)
- Branches:
- master
- Children:
- 45b2750
- Parents:
- 6e66ffd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/WorldMap.h
r6e66ffd r5f868c0 37 37 POSITION pos; 38 38 39 Object( ObjectType type, int id, int x, int y);40 Object( ObjectType type, int id, POSITION pos);39 Object(int id, ObjectType type, int x, int y); 40 Object(int id, ObjectType type, POSITION pos); 41 41 42 42 ~Object(); 43 44 void serialize(char* buffer); 45 void deserialize(char* buffer); 43 46 }; 44 47 … … 58 61 void setStructure(int x, int y, StructureType type); 59 62 63 vector<Object> getObjects(); 60 64 vector<Object> getObjects(int x, int y); 65 61 66 void addObject(ObjectType type, int x, int y); 62 67 void updateObject(int id, WorldMap::ObjectType t, int x, int y); 68 bool removeObject(int id); 63 69 64 70 static WorldMap* createDefaultMap();
Note:
See TracChangeset
for help on using the changeset viewer.