Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 11:19:11 PM (18 years ago)
Author:
rennerc
Message:

renamed EntityManager to NetworkGameManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/handshake.cc

    r6115 r6116  
    2222#include "handshake.h"
    2323
    24 Handshake::Handshake( bool server, int clientId, int entityManagerId )
     24Handshake::Handshake( bool server, int clientId, int networkGameManagerId )
    2525{
    2626  /* set the class id for the base object */
    2727  this->setClassID(CL_HANDSHAKE, "Handshake");
    2828
    29   if ( clientId > 255 )
    30   {
    31     PRINTF(1)("clientId is too big for type byte (%d)! connection to client %d will not work!", clientId, clientId);
    32   }
    33 
    34   if ( entityManagerId > 255 )
    35   {
    36     PRINTF(1)("entityManagerId is too big for type byte (%d)! connection to client %d will not work!", entityManagerId, clientId);
    37   }
    38 
    3929  this->setIsServer(server);
    4030  this->clientId = clientId;
    41   this->entityManagerId = entityManagerId;
     31  this->networkGameManagerId = networkGameManagerId;
    4232  this->state = 0;
    4333  this->isOk = false;
     
    110100    this->isOk = true;
    111101    this->newHostId = data[0];
    112     this->newEntityManagerId = data[1];
     102    this->newNetworkGameManagerId = data[1];
    113103
    114104    if ( newHostId == 0 )
     
    120110    else
    121111    {
    122       PRINTF(0)("got my hostID: %d\n", newHostId);
     112      PRINTF(0)("got my hostID: %d and networkGameManagerId: %d\n", newHostId, newNetworkGameManagerId);
    123113    }
    124114    return;
     
    189179      //memcpy(data, &clientId, 4);
    190180      data[0] = (byte)clientId;
    191       data[1] = (byte)entityManagerId;
     181      data[1] = (byte)networkGameManagerId;
    192182    }
    193183    *reciever = clientId;
Note: See TracChangeset for help on using the changeset viewer.