Changeset 380 for code/branches/FICN/src/network/Server.cc
- Timestamp:
- Dec 4, 2007, 8:22:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/Server.cc
r369 r380 85 85 } 86 86 87 /** 88 * Run this function once every tick 89 * calls processQueue and updateGamestate 90 */ 87 91 void Server::tick(){ 92 processQueue(); 93 updateGamestate(); 94 return; 95 } 96 97 /** 98 * processes all the packets waiting in the queue 99 */ 100 void Server::processQueue(){ 101 ENetPacket *packet; 102 while(!connection.queueEmpty()){ 103 packet = connection.getPacket() 104 } 105 } 106 107 /** 108 * takes a new snapshot of the gamestate and sends it to the clients 109 */ 110 void Server::updateGamestate(){ 88 111 } 89 112
Note: See TracChangeset
for help on using the changeset viewer.