Last change
on this file since 4046 was
3660,
checked in by bensch, 20 years ago
|
orxonox/trunk: now ResourceManager has the ability to unload resources by priority
|
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 "comincl.h" |
---|
10 | #include "glincl.h" |
---|
11 | |
---|
12 | class CommandNode; |
---|
13 | class WorldEntity; |
---|
14 | class DataTank; |
---|
15 | class World; |
---|
16 | class Camera; |
---|
17 | class GameLoader; |
---|
18 | class ResourceManager; |
---|
19 | |
---|
20 | //! Orxonox core singleton class |
---|
21 | /** |
---|
22 | */ |
---|
23 | class Orxonox { |
---|
24 | |
---|
25 | private: |
---|
26 | static Orxonox* singletonRef; |
---|
27 | Orxonox (); |
---|
28 | |
---|
29 | char configfilename[256]; //!< Filename of the configuration-file. |
---|
30 | World* world; //!< Reference to the current running world. |
---|
31 | DataTank* resources; //!< DataContainer |
---|
32 | CommandNode* localinput; //!< Command Handler |
---|
33 | SDL_Surface* screen; //!< The current Screen |
---|
34 | GameLoader* gameLoader; //!< The gameLoader |
---|
35 | ResourceManager* resourceManager; //!< The ResourceManager |
---|
36 | |
---|
37 | bool bQuitOrxonox; //!< If Orxonox should Quit |
---|
38 | bool pause; //!< Pause mode |
---|
39 | Uint32 lastframe; //!< Time of the last Frame |
---|
40 | |
---|
41 | void getConfigFile (int argc, char** argv); |
---|
42 | |
---|
43 | // main loop functions |
---|
44 | // void synchronize (); |
---|
45 | //void handle_input (); |
---|
46 | //void time_slice (); |
---|
47 | //void collision (); |
---|
48 | //void display (); |
---|
49 | |
---|
50 | // subsystem initialization |
---|
51 | int initVideo (); |
---|
52 | int initSound (); |
---|
53 | int initInput (); |
---|
54 | int initNetworking (); |
---|
55 | int initResources (); |
---|
56 | int initWorld (); |
---|
57 | |
---|
58 | public: |
---|
59 | static Orxonox* getInstance (); |
---|
60 | virtual ~Orxonox (); |
---|
61 | |
---|
62 | void start(); |
---|
63 | void quitGame(); |
---|
64 | |
---|
65 | void eventHandler (SDL_Event* event); |
---|
66 | bool systemCommand (Command* cmd); |
---|
67 | |
---|
68 | int init (int argc, char** argv); |
---|
69 | |
---|
70 | CommandNode* getLocalInput(); |
---|
71 | World* getWorld(); |
---|
72 | SDL_Surface* getScreen (); |
---|
73 | |
---|
74 | //void mainLoop(); |
---|
75 | }; |
---|
76 | |
---|
77 | int startHelp(void); |
---|
78 | int startOrxonox(int argc, char** argv); |
---|
79 | int startBenchmarks(void); |
---|
80 | |
---|
81 | #endif /* _ORXONOX_H */ |
---|
82 | |
---|
Note: See
TracBrowser
for help on using the repository browser.