Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2068 in orxonox.OLD for orxonox/branches/chris/src/orxonox.h


Ignore:
Timestamp:
Jul 5, 2004, 10:43:49 AM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: First snippet of the totally revamped base system… perhaps a bit confusing at the moment, but when finished theoretically you only have to subclass the worldentity and track classes to create the game content (even the menu will be a WorldEntity I suppose)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/orxonox.h

    r2058 r2068  
    66
    77class World;
    8 class InputOutput;
    9 class Player;
    10 
    118
    129class Orxonox {
     
    1613  Orxonox ();
    1714  ~Orxonox ();
     15 
     16  static char configfilename[256];
    1817  static World* world;
    19   static InputOutput* io;
    20   static Player* localPlayer;
     18  static DataTank* resources;
     19  static CommandNode* localinput;
     20  static Camera* localcamera;
     21  static SDL_Surface* screen;
     22 
    2123  static bool bQuitOrxonox;
    2224  static bool pause;
    23   static bool inputEnabled;
    24   static bool upWeGo;
    25   static bool downWeGo;
    26   static bool rightWeGo;
    27   static bool leftWeGo;
    28   static bool shoot1;
    29   static int fps;
     25        static Uint32 lastframe;
    3026
    31   static int alpha;
    32   static int beta;
    33   static int offsetX;
    34   static int offsetY;
     27        static void get_config_file (int argc, char** argv);
     28       
     29                // main loop functions
     30  static void synchronize ();
     31  static void handle_input ();
     32  static void time_slice ();
     33  static void collision ();
     34  static void display ();
     35 
     36        // subsystem initialization
     37  int init_video ();
     38  int init_sound ();
     39  int init_input ();
     40  int init_networking ();
     41  int init_resources ();
     42  int init_world ();
    3543
    36   static void timeSlice(int value);
    37 
    38   static SDL_Surface* screen;
     44  static void event_handler (SDL_Event* event);
    3945 
    4046 public:
    41   static Orxonox* getInstance (void);
     47  static Orxonox* getInstance ();
     48  static void quitGame();
    4249
    43   int globalInit (int argc, char** argv);
    44   int menuInit (void);
    45   int gameInit (void);
    46  
     50  int init (int argc, char** argv);
     51       
     52        Camera* get_camera();
     53        World* get_world();
     54       
    4755  void mainLoop();
    48 
    49   void testTheShit(void);
    50   static void display (void);
    51   static void continousRedraw(void);
    52   static void reshape (int w, int h);
    53   static void keyboard(unsigned char key, int x, int y);
    54   static void upKeyboard(unsigned char key, int x, int y);
    55   static void releaseKey(int key, int x, int y);
    56   static void specFunc(int key, int x, int y);
    57   static void quitGame(void);
    5856};
    5957
Note: See TracChangeset for help on using the changeset viewer.