Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2007, 8:22:24 PM (16 years ago)
Author:
scheusso
Message:

problem in connectionmanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/Server.cc

    r369 r380  
    8585  }
    8686 
     87  /**
     88   * Run this function once every tick
     89   * calls processQueue and updateGamestate
     90   */
    8791  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(){
    88111  }
    89112 
Note: See TracChangeset for help on using the changeset viewer.