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










