Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6095 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Dec 14, 2005, 1:39:37 AM (19 years ago)
Author:
patrick
Message:

network: game server world loadin

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

Legend:

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

    r6007 r6095  
    107107{
    108108  this->tmpStream = new NetworkStream(port);
     109  this->bGameServer = true;
    109110  SDL_Delay(20);
    110111  return 1;
     
    135136  this->tmpStream = new NetworkStream(port);
    136137  this->tmpStream->connectSynchronizeable(sync);
     138  this->bGameServer = true;
    137139}
    138140
  • branches/network/src/lib/network/network_manager.h

    r6018 r6095  
    4545    void setHostID(int id);
    4646    /** Returns the hostID @return The hostID of the object */
    47     inline int getHostID() { return this->hostID; };
     47    inline int getHostID() { return this->hostID; }
     48    inline bool isGameServer() { return this->bGameServer; }
    4849
    4950
     
    5657
    5758  private:
    58     const std::list<BaseObject*>*    netStreamList;            // list with refs to all network streams
    59     const std::list<BaseObject*>*    syncList;                 // list of synchronizeables
    60     static NetworkManager* singletonRef;           //!< Pointer to the only instance of this Class
    61     NetworkStream*         tmpStream;              //!< FIXME: this is only for testing purposes
    62     int hostID;                                    //!< The Host-ID of the Manager
     59    const std::list<BaseObject*>*    netStreamList;           // list with refs to all network streams
     60    const std::list<BaseObject*>*    syncList;                // list of synchronizeables
     61    static NetworkManager*           singletonRef;            //!< Pointer to the only instance of this Class
     62    NetworkStream*                   tmpStream;               //!< FIXME: this is only for testing purposes
     63    int                              hostID;                  //!< The Host-ID of the Manager
     64    bool                             bGameServer;             //!< true if it is a server
    6365
    6466};
Note: See TracChangeset for help on using the changeset viewer.