Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6917 in orxonox.OLD


Ignore:
Timestamp:
Jan 31, 2006, 10:09:45 PM (19 years ago)
Author:
patrick
Message:

network: removed some library dependencies

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

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

    r6892 r6917  
    3030#include "playable.h"
    3131#include "player.h"
    32 #include "network_manager.h"
     32#include "shared_network_data.h"
    3333
    3434#include "class_list.h"
     
    541541    if ( b->isA(CL_WORLD_ENTITY) && !b->isA(CL_PLAYABLE) )
    542542    {
    543       if ( NetworkManager::getInstance()->getHostID()!=0 )
     543      if ( SharedNetworkData::getInstance()->getHostID()!=0 )
    544544      {
    545545        static Vector pos = Vector(1000.0, 1000.0, 1000.0);
  • branches/network/src/lib/network/network_stream.cc

    r6892 r6917  
    2626#include "connection_monitor.h"
    2727#include "synchronizeable.h"
    28 #include "network_manager.h"
    2928#include "network_game_manager.h"
     29#include "shared_network_data.h"
    3030
    3131#include "debug.h"
     
    195195          {
    196196            SharedNetworkData::getInstance()->setHostID( handshakes[i]->getHostId() );
    197             myHostId = NetworkManager::getInstance()->getHostID();
     197            myHostId = SharedNetworkData::getInstance()->getHostID();
    198198
    199199            this->networkGameManager = NetworkGameManager::getInstance();
     
    232232  Header header;
    233233  int counter;
    234  
     234
    235235  for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++)
    236236  {
    237237    counter = 0;
    238    
     238
    239239    if ( (*it)!=NULL && (*it)->beSynchronized() /*&& (*it)->getOwner() == myHostId*/ )
    240240    {
    241241      do {
    242242        counter++;
    243        
     243
    244244        //check for endless loop
    245245        if ( counter > 50 )
     
    248248          assert(false);
    249249        }
    250        
     250
    251251        reciever = 0;
    252252        dataLength = (*it)->readBytes(downBuffer, DATA_STREAM_BUFFER_SIZE, &reciever);
Note: See TracChangeset for help on using the changeset viewer.