Last change
on this file since 4818 was
4817,
checked in by patrick, 19 years ago
|
orxonox/trunk: orxonox is now baseobject, graphicsengine handles events itself and is therefore eventlistener now
|
File size:
1.7 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file orxonox.h |
---|
3 | \brief Orxonox core functions |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _ORXONOX_H |
---|
7 | #define _ORXONOX_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | |
---|
11 | class WorldEntity; |
---|
12 | class GameLoader; |
---|
13 | class ResourceManager; |
---|
14 | class ObjectManager; |
---|
15 | class EventHandler; |
---|
16 | class Event; |
---|
17 | class IniParser; |
---|
18 | |
---|
19 | //! orxonox core singleton class |
---|
20 | /** |
---|
21 | */ |
---|
22 | class Orxonox : public BaseObject { |
---|
23 | |
---|
24 | public: |
---|
25 | 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 | |
---|
29 | int init (int argc, char** argv); |
---|
30 | |
---|
31 | void start(); |
---|
32 | |
---|
33 | //void graphicsHandler (SDL_Event* event); |
---|
34 | |
---|
35 | private: |
---|
36 | Orxonox (); |
---|
37 | |
---|
38 | void parseIniFile(const char* fileName); |
---|
39 | |
---|
40 | int initVideo (); |
---|
41 | int initSound (); |
---|
42 | int initInput (); |
---|
43 | int initNetworking (); |
---|
44 | int initResources (); |
---|
45 | |
---|
46 | const char* getConfigFile (int argc, char** argv); |
---|
47 | |
---|
48 | private: |
---|
49 | static Orxonox* singletonRef; //!< singleton reference to orxonox |
---|
50 | |
---|
51 | IniParser* iniParser; //!< Reference to the ini-parser used in orxonox |
---|
52 | char configFileName[256]; //!< Filename of the configuration-file. |
---|
53 | GameLoader* gameLoader; //!< The gameLoader |
---|
54 | ResourceManager* resourceManager; //!< The ResourceManager |
---|
55 | ObjectManager* objectManager; //!< the object manager of the game |
---|
56 | EventHandler* eventHandler; //!< the eventhandler of orxonox is created here |
---|
57 | |
---|
58 | unsigned int argc; //!< Count of Arguments of orxonox |
---|
59 | char** argv; //!< Values of th Arguments of orxonox. |
---|
60 | }; |
---|
61 | |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | int startHelp(int argc, char** argv); |
---|
66 | int startOrxonox(int argc, char** argv); |
---|
67 | |
---|
68 | #endif /* _ORXONOX_H */ |
---|
69 | |
---|
Note: See
TracBrowser
for help on using the repository browser.