Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2104 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Jul 10, 2004, 3:07:42 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: This code compiles and links but is still missing the SDL libraries.

Location:
orxonox/branches/chris/src
Files:
4 edited

Legend:

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

    r2101 r2104  
    5151/* this is a singleton class to prevent duplicates */
    5252Orxonox* Orxonox::singleton_ref = 0;
    53 World* Orxonox::world = 0;
    54 bool Orxonox::pause = false;
    55 
    5653
    5754Orxonox* Orxonox::getInstance (void)
  • orxonox/branches/chris/src/orxonox.h

    r2100 r2104  
    2020  ~Orxonox ();
    2121 
    22   static char configfilename[256];
    23   static World* world;
    24   static DataTank* resources;
    25   static CommandNode* localinput;
    26   static Camera* localcamera;
    27   static SDL_Surface* screen;
     22  char configfilename[256];
     23  World* world;
     24  DataTank* resources;
     25  CommandNode* localinput;
     26  Camera* localcamera;
     27  SDL_Surface* screen;
    2828 
    29   static bool bQuitOrxonox;
    30   static bool pause;
    31         static Uint32 lastframe;
     29  bool bQuitOrxonox;
     30  bool pause;
     31        Uint32 lastframe;
    3232
    33         static void get_config_file (int argc, char** argv);
     33        void get_config_file (int argc, char** argv);
    3434       
    3535                // main loop functions
    36   static void synchronize ();
    37   static void handle_input ();
    38   static void time_slice ();
    39   static void collision ();
    40   static void display ();
     36  void synchronize ();
     37  void handle_input ();
     38  void time_slice ();
     39  void collision ();
     40  void display ();
    4141 
    4242        // subsystem initialization
     
    5050 public:
    5151  static Orxonox* getInstance ();
    52   static void quitGame();
     52  void quitGame();
    5353
    54   static void event_handler (SDL_Event* event);
     54  void event_handler (SDL_Event* event);
    5555
    5656  int init (int argc, char** argv);
  • orxonox/branches/chris/src/world.cc

    r2101 r2104  
    196196        orx->get_camera()->bind (myPlayer);
    197197}
     198
     199void World::calc_camera_pos (Location* loc, Placement* plc)
     200{
     201  track[loc->part].map_camera (loc, plc);
     202}
  • orxonox/branches/chris/src/world_entity.cc

    r2101 r2104  
    122122}
    123123
     124void WorldEntity::post_spawn ()
     125{
     126}
     127
     128void WorldEntity::command (Command* cmd)
     129{
     130}
     131
     132void WorldEntity::get_lookat (Location* locbuf)
     133{
     134}
     135
     136void WorldEntity::left_world ()
     137{
     138}
Note: See TracChangeset for help on using the changeset viewer.