Changeset b26229c in network-game
- Timestamp:
- May 18, 2013, 9:29:09 PM (12 years ago)
- Branches:
- master
- Children:
- a78c387
- Parents:
- 2864d8e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
r2864d8e rb26229c 131 131 // using moveCanceled in a hacky way just to indicate that the server 132 132 // has updated some player info. Should change the variable name 133 cout << "Object at location: " << map->getObject(newPos.x/25, newPos.y/25) << endl; 133 134 switch(map->getObject(newPos.x/25, newPos.y/25)) { 134 135 case WorldMap::OBJECT_BLUE_FLAG: -
common/WorldMap.cpp
r2864d8e rb26229c 177 177 break; 178 178 case 1: 179 object = OBJECT_ RED_FLAG;179 object = OBJECT_BLUE_FLAG; 180 180 break; 181 181 case 2: 182 object = OBJECT_ BLUE_FLAG;182 object = OBJECT_RED_FLAG; 183 183 break; 184 184 } -
server/server.cpp
r2864d8e rb26229c 131 131 it->second.serialize(serverMsg.buffer); 132 132 133 cout << "(" << it->second.pos.x << "," << it->second.pos.y << ")" << endl; 134 133 135 if (it->second.hasBlueFlag) 134 136 cout << "Got blue flag" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.