Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 10:12:50 PM (16 years ago)
Author:
scheusso
Message:

ClientInformation is now consisten with other classes regarding clientid
and gamestateid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/ClientInformation.cc

    r1953 r1955  
    137137  }
    138138
    139   int ClientInformation::getID() {
     139  unsigned int ClientInformation::getID() {
    140140    if(!this)
    141141      return CLIENTID_UNKNOWN;
     
    169169  }
    170170
    171   int ClientInformation::getGamestateID() {
     171  unsigned int ClientInformation::getGamestateID() {
    172172    if(this)
    173173      return gamestateID_;
     
    176176  }
    177177
    178   int ClientInformation::getPartialGamestateID() {
     178  unsigned int ClientInformation::getPartialGamestateID() {
    179179    if(this)
    180180      return partialGamestateID_;
     
    196196  }
    197197
    198   bool ClientInformation::removeClient(int clientID) {
     198  bool ClientInformation::removeClient(unsigned int clientID) {
    199199    if((unsigned int)clientID==CLIENTID_UNKNOWN)
    200200      return false;
     
    229229  * @return pointer to the last element in the list or 0 if the search was unsuccessfull
    230230  */
    231   ClientInformation *ClientInformation::findClient(int clientID, bool look_backwards) {
     231  ClientInformation *ClientInformation::findClient(unsigned int clientID, bool look_backwards) {
    232232    ClientInformation *temp = head_;
    233233    while(temp!=0 && temp->getID()!=clientID){
Note: See TracChangeset for help on using the changeset viewer.