Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5829 in orxonox.OLD for branches/network/src/story_entities


Ignore:
Timestamp:
Nov 30, 2005, 9:43:05 AM (19 years ago)
Author:
patrick
Message:

network: much work on multiplayability, does not yet work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/world.cc

    r5819 r5829  
    7373#include "shader.h"
    7474
     75#include "network_manager.h"
     76
    7577SHELL_COMMAND(speed, World, setSpeed);
    7678SHELL_COMMAND(togglePNodeVisibility, World, togglePNodeVisibility);
     
    321323            localPlayer = (Player*) created;
    322324            CDEngine::getInstance()->setPlayer(localPlayer);
     325            NetworkManager::getInstance()->connectSynchronizeable(*(Synchronizeable*)this->localPlayer);
    323326          }
    324327          if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created;
     
    827830  // Get remote input
    828831  // Update synchronizables
     832  NetworkManager::getInstance()->synchronize();
    829833}
    830834
Note: See TracChangeset for help on using the changeset viewer.