Last change
on this file since 4717 was
4447,
checked in by patrick, 20 years ago
|
orxonox/trunk: made orxonox.cc a littel nicer.
|
File size:
1.4 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 "event_listener.h" |
---|
10 | |
---|
11 | class WorldEntity; |
---|
12 | class GameLoader; |
---|
13 | class ResourceManager; |
---|
14 | class ObjectManager; |
---|
15 | class EventHandler; |
---|
16 | class Event; |
---|
17 | |
---|
18 | //! Orxonox core singleton class |
---|
19 | /** |
---|
20 | */ |
---|
21 | class Orxonox : public EventListener { |
---|
22 | |
---|
23 | public: |
---|
24 | static Orxonox* getInstance (); |
---|
25 | virtual ~Orxonox (); |
---|
26 | int init (int argc, char** argv); |
---|
27 | |
---|
28 | void start(); |
---|
29 | |
---|
30 | void graphicsHandler (SDL_Event* event); |
---|
31 | void process(const Event &event); |
---|
32 | |
---|
33 | private: |
---|
34 | Orxonox (); |
---|
35 | |
---|
36 | int initVideo (); |
---|
37 | int initSound (); |
---|
38 | int initInput (); |
---|
39 | int initNetworking (); |
---|
40 | int initResources (); |
---|
41 | |
---|
42 | void getConfigFile (int argc, char** argv); |
---|
43 | |
---|
44 | private: |
---|
45 | static Orxonox* singletonRef; //!< singleton reference to orxonox |
---|
46 | |
---|
47 | char configfilename[256]; //!< Filename of the configuration-file. |
---|
48 | GameLoader* gameLoader; //!< The gameLoader |
---|
49 | ResourceManager* resourceManager; //!< The ResourceManager |
---|
50 | ObjectManager* objectManager; //!< the object manager of the game |
---|
51 | EventHandler* eventHandler; //!< the eventhandler of orxonox is created here |
---|
52 | |
---|
53 | unsigned int argc; //!< Count of Arguments of orxonox |
---|
54 | char** argv; //!< Values of th Arguments of orxonox. |
---|
55 | }; |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | int startHelp(int argc, char** argv); |
---|
61 | int startOrxonox(int argc, char** argv); |
---|
62 | |
---|
63 | #endif /* _ORXONOX_H */ |
---|
64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.