Changeset 2190 in orxonox.OLD for orxonox/trunk/src/orxonox.h
- Timestamp:
- Jul 17, 2004, 12:11:20 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.h
r2036 r2190 1 /*! 2 \file orxonox.h 3 \brief Orxonox core functions 4 */ 1 5 2 6 #ifndef ORXONOX_H 3 7 #define ORXONOX_H 4 8 9 #include <SDL/SDL.h> 10 11 #include "stdincl.h" 12 13 class CommandNode; 14 class WorldEntity; 15 class DataTank; 5 16 class World; 6 class InputOutput; 7 class Player; 17 class Camera; 8 18 9 19 //! Orxonox core singleton class 20 /** 21 */ 10 22 class Orxonox { 11 23 … … 14 26 Orxonox (); 15 27 ~Orxonox (); 16 static World* world;17 static InputOutput* io;18 static Player* localPlayer;19 static bool pause;20 static bool inputEnabled;21 static bool upWeGo;22 static bool downWeGo;23 static bool rightWeGo;24 static bool leftWeGo;25 static bool shoot1;26 static int fps;28 29 char configfilename[256]; 30 World* world; 31 DataTank* resources; 32 CommandNode* localinput; 33 Camera* localcamera; 34 SDL_Surface* screen; 35 36 bool bQuitOrxonox; 37 bool pause; 38 Uint32 lastframe; 27 39 28 static int alpha; 29 static int beta; 30 static int offsetX; 31 static int offsetY; 40 void get_config_file (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 init_video (); 51 int init_sound (); 52 int init_input (); 53 int init_networking (); 54 int init_resources (); 55 int init_world (); 56 57 public: 58 static Orxonox* getInstance (); 59 void quitGame(); 32 60 33 static void timeSlice(int value); 61 void event_handler (SDL_Event* event); 62 bool system_command (Command* cmd); 34 63 35 public: 36 static Orxonox* getInstance (void); 37 38 int globalInit (int argc, char** argv); 39 int menuInit (void); 40 int gameInit (void); 41 void testTheShit(void); 42 static void display (void); 43 static void continousRedraw(void); 44 static void reshape (int w, int h); 45 static void keyboard(unsigned char key, int x, int y); 46 static void upKeyboard(unsigned char key, int x, int y); 47 static void releaseKey(int key, int x, int y); 48 static void specFunc(int key, int x, int y); 49 static void quitGame(void); 64 int init (int argc, char** argv); 65 66 CommandNode* get_localinput(); 67 Camera* get_camera(); 68 World* get_world(); 69 70 void mainLoop(); 50 71 }; 51 72
Note: See TracChangeset
for help on using the changeset viewer.