Last change
on this file since 3952 was
3399,
checked in by bensch, 20 years ago
|
orxonox/branches/nico: merged trunk into branches/nico
merged with command:
svn merge ../trunk/ nico/ -r 3238:HEAD
resolved conflict in favor of branches/nico.
|
File size:
1.3 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 "stdincl.h" |
---|
10 | |
---|
11 | class CommandNode; |
---|
12 | class WorldEntity; |
---|
13 | class DataTank; |
---|
14 | class World; |
---|
15 | class Camera; |
---|
16 | class GameLoader; |
---|
17 | |
---|
18 | //! Orxonox core singleton class |
---|
19 | /** |
---|
20 | */ |
---|
21 | class Orxonox { |
---|
22 | |
---|
23 | private: |
---|
24 | static Orxonox* singletonRef; |
---|
25 | Orxonox (); |
---|
26 | ~Orxonox (); |
---|
27 | |
---|
28 | char configfilename[256]; |
---|
29 | World* world; |
---|
30 | DataTank* resources; |
---|
31 | CommandNode* localinput; |
---|
32 | Camera* localcamera; |
---|
33 | SDL_Surface* screen; |
---|
34 | GameLoader* gameLoader; |
---|
35 | |
---|
36 | bool bQuitOrxonox; |
---|
37 | bool pause; |
---|
38 | Uint32 lastframe; |
---|
39 | |
---|
40 | void getConfigFile (int argc, char** argv); |
---|
41 | |
---|
42 | // main loop functions |
---|
43 | // void synchronize (); |
---|
44 | //void handle_input (); |
---|
45 | //void time_slice (); |
---|
46 | //void collision (); |
---|
47 | //void display (); |
---|
48 | |
---|
49 | // subsystem initialization |
---|
50 | int initVideo (); |
---|
51 | int initSound (); |
---|
52 | int initInput (); |
---|
53 | int initNetworking (); |
---|
54 | int initResources (); |
---|
55 | int initWorld (); |
---|
56 | |
---|
57 | public: |
---|
58 | static Orxonox* getInstance (); |
---|
59 | void start(); |
---|
60 | void quitGame(); |
---|
61 | |
---|
62 | void eventHandler (SDL_Event* event); |
---|
63 | bool systemCommand (Command* cmd); |
---|
64 | |
---|
65 | int init (int argc, char** argv); |
---|
66 | |
---|
67 | CommandNode* getLocalInput(); |
---|
68 | Camera* getCamera(); |
---|
69 | World* getWorld(); |
---|
70 | SDL_Surface* getScreen (); |
---|
71 | |
---|
72 | //void mainLoop(); |
---|
73 | }; |
---|
74 | |
---|
75 | #endif /* _ORXONOX_H */ |
---|
76 | |
---|
Note: See
TracBrowser
for help on using the repository browser.