Last change
on this file since 3672 was
3605,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged trunk back to levelloader
merged with command:
svn merge -r 3499:HEAD trunk branches/levelloader
Conflicts in
C track_manager.h
C world_entities/player.cc
C world_entities/player.h
C world_entities/environment.h
C lib/coord/p_node.cc
C defs/debug.h
C track_manager.cc
C story_entities/campaign.h
solved in merge-favouring. It was quite easy because Chris only worked on the headers, and he didi it quite clean. Thats the spirit
Conflits in world.cc are a MESS: fix it
|
File size:
1.6 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 | virtual ~Orxonox (); |
---|
27 | |
---|
28 | char configfilename[256]; //!< Filename of the configuration-file. |
---|
29 | World* world; //!< Reference to the current running world. |
---|
30 | DataTank* resources; //!< DataContainer |
---|
31 | CommandNode* localinput; //!< Command Handler |
---|
32 | Camera* localcamera; //!< The current Camera |
---|
33 | SDL_Surface* screen; //!< The current Screen |
---|
34 | GameLoader* gameLoader; //!< The gameLoader |
---|
35 | |
---|
36 | bool bQuitOrxonox; //!< If Orxonox should Quit |
---|
37 | bool pause; //!< Pause mode |
---|
38 | Uint32 lastframe; //!< Time of the last Frame |
---|
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.