Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2005, 5:13:00 PM (18 years ago)
Author:
patrick
Message:

network: cleaned up the game_loader

File:
1 edited

Legend:

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

    r5972 r5974  
    4040{
    4141
    42  
     42
    4343 public:
    4444  ~GameLoader ();
     
    4646  /**  this class is a singleton class @returns an instance of itself  */
    4747  static GameLoader* getInstance() { if(singletonRef == NULL) singletonRef = new GameLoader();  return singletonRef; }
     48
     49  void registerFactory( Factory* factory );
     50  BaseObject* fabricate(const TiXmlElement* data);
    4851
    4952  ErrorMessage init();
     
    5457  ErrorMessage destroy();
    5558
     59  ErrorMessage loadDebugCampaign(Uint32 campaignID);
     60  ErrorMessage loadCampaign(const char* name);
     61  ErrorMessage loadNetworkCampaign(const char* name);
     62
     63  void process(const Event &event);
     64
    5665  void nextLevel();
    5766  void previousLevel();
    5867
    59   ErrorMessage loadDebugCampaign(Uint32 campaignID);
    60   ErrorMessage loadCampaign(const char* name);
    61   ErrorMessage loadNetworkCampaign(const char* name);
    62  
    6368
    64   void registerFactory( Factory* factory );
    65   BaseObject* fabricate(const TiXmlElement* data);
    66 
    67   void process(const Event &event);
    68 
    69  
    7069 private:
    7170  GameLoader ();
     
    7372  Campaign* fileToCampaign(const char* name);
    7473
    75  
     74
    7675 private:
    7776  static GameLoader*     singletonRef;         //!< The singleton-reference to this object
    78 
    79   Uint32                 startTime;            //!< start time of the campaign
    80   bool                   isPaused;             //!< if the game is paused
    81 
    8277  Campaign*              currentCampaign;      //!< reference to the current campaign playing
    8378
    84   EventHandler*          eventHandler;         //!< reference to the eventHandler
     79  bool                   isPaused;             //!< if the game is paused
    8580};
    8681
Note: See TracChangeset for help on using the changeset viewer.