Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6351 in orxonox.OLD for branches/network/src/orxonox.h


Ignore:
Timestamp:
Dec 30, 2005, 1:55:51 PM (19 years ago)
Author:
patrick
Message:

network: the network initialisation is much better, working for dedicated server mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/orxonox.h

    r5996 r6351  
    99#include "base_object.h"
    1010
    11 class WorldEntity;
    1211class GameLoader;
    1312class IniParser;
     
    1817class Orxonox : public BaseObject {
    1918
     19
    2020 public:
    2121  virtual ~Orxonox ();
     
    2424
    2525  int init(int argc, char** argv, const char* name, int port);
     26  void start();
    2627
    27   void restart();
    28 
    29   void start();
    3028
    3129 private:
    3230  Orxonox ();
    3331
     32  int initResources (int argc, char** argv);
     33  int initVideo (int argc, char** argv);
     34  int initSound (int argc, char** argv);
     35  int initInput (int argc, char** argv);
     36  int initNetworking (int argc, char** argv);
     37  int initMisc (int argc, char** argv);
     38
    3439  void parseIniFile(const char* fileName);
     40  const char* getConfigFile ();
    3541
    36   int initResources ();
    37   int initVideo ();
    38   int initSound ();
    39   int initInput ();
    40   int initNetworking ();
    41   int initMisc ();
    42 
    43   const char* getConfigFile ();
    4442
    4543 private:
     
    5452
    5553  const char*       serverName;              //!< Name of the Orxonox client if == NULL -> server
     54  int               dedicatedServer;         //!< is 1 if the server is a dedicated server, 0 else
    5655  int               port;                    //!< number of the network port of the server/client if == -1 no network
    5756};
     
    6362int showHelp(int argc, char** argv);
    6463int showLicense();
    65 int startNetworkOrxonox(int argc, char** argv);
    6664int startOrxonox(int argc, char** argv, const char* clientName, int port);
    6765
Note: See TracChangeset for help on using the changeset viewer.