Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2005, 4:59:24 PM (20 years ago)
Author:
patrick
Message:

network: started renice work on the game_load, making it network friendly:D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/loading/game_loader.h

    r5819 r5972  
    4040{
    4141
     42 
    4243 public:
    4344  ~GameLoader ();
    4445
    45   static GameLoader* getInstance();
     46  /**  this class is a singleton class @returns an instance of itself  */
     47  static GameLoader* getInstance() { if(singletonRef == NULL) singletonRef = new GameLoader();  return singletonRef; }
    4648
    4749  ErrorMessage init();
    48   ErrorMessage loadCampaign(const char* name);
    4950  ErrorMessage start();
    5051  void stop();
     
    5657  void previousLevel();
    5758
    58   /** \brief a world command to send to the GameLoader @param cmd the command */
    59   bool worldCommand(Command* cmd);
    6059  ErrorMessage loadDebugCampaign(Uint32 campaignID);
     60  ErrorMessage loadCampaign(const char* name);
     61  ErrorMessage loadNetworkCampaign(const char* name);
     62 
    6163
    6264  void registerFactory( Factory* factory );
     
    6567  void process(const Event &event);
    6668
     69 
    6770 private:
    6871  GameLoader ();
     
    7073  Campaign* fileToCampaign(const char* name);
    7174
     75 
    7276 private:
    7377  static GameLoader*     singletonRef;         //!< The singleton-reference to this object
Note: See TracChangeset for help on using the changeset viewer.