Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2190 in orxonox.OLD for orxonox/trunk/src/orxonox.h


Ignore:
Timestamp:
Jul 17, 2004, 12:11:20 PM (21 years ago)
Author:
bensch
Message:

orxonox/trunk: merged and copied all files from branches/chris into trunk. it all seems to be in propper order.

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*/
    15
    26#ifndef ORXONOX_H
    37#define ORXONOX_H
    48
     9#include <SDL/SDL.h>
     10
     11#include "stdincl.h"
     12
     13class CommandNode;
     14class WorldEntity;
     15class DataTank;
    516class World;
    6 class InputOutput;
    7 class Player;
     17class Camera;
    818
    9 
     19//! Orxonox core singleton class
     20/**
     21*/
    1022class Orxonox {
    1123
     
    1426  Orxonox ();
    1527  ~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;
    2739
    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();
    3260
    33   static void timeSlice(int value);
     61  void event_handler (SDL_Event* event);
     62  bool system_command (Command* cmd);
    3463
    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();
    5071};
    5172
Note: See TracChangeset for help on using the changeset viewer.