Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4766 in orxonox.OLD for orxonox/trunk/src/orxonox.h


Ignore:
Timestamp:
Jul 2, 2005, 11:54:41 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: cleaned up orxonox.cc a bit, and now one has the ability to choose the resolution in the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.h

    r4447 r4766  
    1 /*! 
     1/*!
    22    \file orxonox.h
    33    \brief Orxonox core functions
    4 */ 
     4*/
    55
    66#ifndef _ORXONOX_H
     
    1515class EventHandler;
    1616class Event;
     17class IniParser;
    1718
    1819//! Orxonox core singleton class
     
    2223
    2324 public:
    24   static Orxonox* getInstance ();
    2525  virtual ~Orxonox ();
     26  /** \returns a Pointer to the only object of this Class */
     27  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
     28
    2629  int init (int argc, char** argv);
    2730
     
    3437  Orxonox ();
    3538
     39  void parseIniFile(const char* fileName);
     40
    3641  int initVideo ();
    3742  int initSound ();
     
    4045  int initResources ();
    4146
    42   void getConfigFile (int argc, char** argv);
     47  const char* getConfigFile (int argc, char** argv);
    4348
    4449 private:
    4550  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
    4651
    47   char              configfilename[256];     //!< Filename of the configuration-file.
     52  IniParser*        iniParser;               //!< Reference to the ini-parser used in orxonox
     53  char              configFileName[256];     //!< Filename of the configuration-file.
    4854  GameLoader*       gameLoader;              //!< The gameLoader
    4955  ResourceManager*  resourceManager;         //!< The ResourceManager
    5056  ObjectManager*    objectManager;           //!< the object manager of the game
    5157  EventHandler*     eventHandler;            //!< the eventhandler of orxonox is created here
    52  
     58
    5359  unsigned int      argc;                    //!< Count of Arguments of orxonox
    5460  char**            argv;                    //!< Values of th Arguments of orxonox.
Note: See TracChangeset for help on using the changeset viewer.