Changeset 3d6f78f in network-game
- Timestamp:
- Dec 17, 2013, 12:46:17 AM (11 years ago)
- Branches:
- master
- Children:
- 1248984
- Parents:
- b4c5b6a
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
design/multipleGameDesign.txt
rb4c5b6a r3d6f78f 6 6 7 7 There should be a new LOBBY state the player goes to after logging in, which lets him create a game and view all created games. There should also be a button to let him go to the current "global" game. 8 9 The client only has one game object, which is the game the client is currently in (or MILL if the client is in the lobby). The mapGames of the client maps game names to number of players in each game. -
server/server.cpp
rb4c5b6a r3d6f78f 1095 1095 Player* p = findPlayerByAddr(mapPlayers, from); 1096 1096 p->team = rand() % 2; // choose a random team (either 0 or 1) 1097 p->currentGame = g; 1097 p->currentGame = g; // should have been done in JOIN_GAME, so not necessary 1098 1098 1099 1099 map<unsigned int, Player*>& otherPlayers = g->getPlayers();
Note:
See TracChangeset
for help on using the changeset viewer.