Last change
on this file since 4445 was
4445,
checked in by patrick, 19 years ago
|
orxonox/trunk: cleaned up the orxonox class: removed all unused variables and functions
|
File size:
1.5 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 "glincl.h" |
---|
10 | #include "event_listener.h" |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | class WorldEntity; |
---|
15 | class World; |
---|
16 | class Camera; |
---|
17 | class GameLoader; |
---|
18 | class ResourceManager; |
---|
19 | class ObjectManager; |
---|
20 | class EventHandler; |
---|
21 | class Event; |
---|
22 | |
---|
23 | //! Orxonox core singleton class |
---|
24 | /** |
---|
25 | */ |
---|
26 | class Orxonox : public EventListener { |
---|
27 | |
---|
28 | |
---|
29 | public: |
---|
30 | static Orxonox* getInstance (); |
---|
31 | virtual ~Orxonox (); |
---|
32 | int init (int argc, char** argv); |
---|
33 | |
---|
34 | void start(); |
---|
35 | void quitGame(); |
---|
36 | |
---|
37 | void graphicsHandler (SDL_Event* event); |
---|
38 | void process(const Event &event); |
---|
39 | |
---|
40 | private: |
---|
41 | int initVideo (); |
---|
42 | int initSound (); |
---|
43 | int initInput (); |
---|
44 | int initNetworking (); |
---|
45 | int initResources (); |
---|
46 | |
---|
47 | private: |
---|
48 | static Orxonox* singletonRef; |
---|
49 | Orxonox (); |
---|
50 | |
---|
51 | char configfilename[256]; //!< Filename of the configuration-file. |
---|
52 | GameLoader* gameLoader; //!< The gameLoader |
---|
53 | ResourceManager* resourceManager; //!< The ResourceManager |
---|
54 | ObjectManager* objectManager; //!< the object manager of the game |
---|
55 | EventHandler* eventHandler; |
---|
56 | |
---|
57 | bool bQuitOrxonox; //!< If Orxonox should Quit |
---|
58 | bool pause; //!< Pause mode |
---|
59 | Uint32 lastframe; //!< Time of the last Frame |
---|
60 | |
---|
61 | unsigned int argc; //!< Count of Arguments of orxonox |
---|
62 | char** argv; //!< Values of th Arguments of orxonox. |
---|
63 | |
---|
64 | void getConfigFile (int argc, char** argv); |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | }; |
---|
69 | |
---|
70 | int startHelp(int argc, char** argv); |
---|
71 | int startOrxonox(int argc, char** argv); |
---|
72 | |
---|
73 | #endif /* _ORXONOX_H */ |
---|
74 | |
---|
Note: See
TracBrowser
for help on using the repository browser.