Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6345 in orxonox.OLD for trunk/src/story_entities/network_world.h


Ignore:
Timestamp:
Dec 30, 2005, 2:26:12 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: tried to merge the old world to the new one… this was not too good

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/network_world.h

    r6142 r6345  
    77#define _WORLD_H
    88
    9 #include "stdincl.h"
    10 #include "comincl.h"
     9#include "sdlincl.h"
    1110#include "story_entity.h"
    12 #include "p_node.h"
    1311#include "object_manager.h"
    1412
     
    3331
    3432 public:
    35   NetworkWorld (const char* name);
    36   NetworkWorld (int worldID);
    3733  NetworkWorld (const TiXmlElement* root = NULL);
    3834  virtual ~NetworkWorld ();
     
    4541  virtual ErrorMessage preLoad();
    4642  virtual ErrorMessage load ();
    47   virtual ErrorMessage init ();
     43  virtual ErrorMessage postLoad();
     44
     45  virtual ErrorMessage preStart();
    4846  virtual ErrorMessage start ();
    4947  virtual ErrorMessage stop ();
     
    5250  virtual ErrorMessage destroy ();
    5351
    54   void loadDebugNetworkWorld(int worldID);
    55 
    56   virtual void displayLoadScreen();
    57   virtual void releaseLoadScreen();
    58 
    59   /* command node functions */
    60   bool command (Command* cmd);
     52  void displayLoadScreen();
     53  void releaseLoadScreen();
    6154
    6255  /* interface to world */
    63   void spawn (WorldEntity* entity);
    64   void spawn (WorldEntity* entity, Vector* absCoor, Quaternion* absDir);
    65   void spawn(WorldEntity* entity, PNode* parentNode, Vector* relCoor, Quaternion* relDir);
     56//  void spawn (WorldEntity* entity);
    6657
    6758  /** @param speed sets the speed of the Game */
     
    6960  const char* getPath();
    7061  void setPath( const char* name);
    71 
    72   inline Camera* getLocalCamera() { return this->localCamera; };
    7362
    7463  void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; };
     
    7867  void constuctorInit(const char* name, int worldID);
    7968  /* function for main-loop */
    80   void mainLoop ();
    8169  void synchronize ();
    8270  void handleInput ();
     
    8674  void collide ();
    8775  void draw ();
     76  void mainLoop ();
     77
    8878  void display ();
    8979  void debug ();
    9080
    9181  private:
    92     bool   showPNodes;                  //!< if the PNodes should be visible.
    93     bool   showBV;                      //!< if the Bounding Volumes should be visible.
     82    char* path;                         //!< The file from which this world is loaded
     83
     84    // FLAGS //
     85    bool bQuitWorld;                    //!< quit only the current game and return to menu
     86    bool bPause;                        //!< pause mode
     87
     88    bool showPNodes;                    //!< if the PNodes should be visible.
     89    bool showBV;                        //!< if the Bounding Volumes should be visible.
     90
     91    // TIMING //
    9492    Uint32 lastFrame;                   //!< last time of frame
    9593    Uint32 cycle;                       //!< The cycle we are in (starts with 0 and rises with every frame)
     
    9896    float speed;                        //!< how fast the game flows
    9997    double gameTime;                    //!< this is where the game time is saved
    100     bool bQuitOrxonox;                  //!< quit this application
    101     bool bQuitCurrentGame;              //!< quit only the current game and return to menu
    102     bool bPause;                        //!< pause mode
    10398
    104     ObjectManager      objectManager;   //!< The ObjectManager of this World.
     99    // INTERNAL ENGINES
     100    ObjectManager objectManager;        //!< The ObjectManager of this World.
     101    Shell*     shell;
     102    OggPlayer* music;
    105103
    106104    GLMenuImageScreen* glmis;           //!< The Level-Loader Display
    107105
    108     int debugNetworkWorldNr;                   //!< The Debug Nr. needed, if something goes wrong
    109     char* path;                         //!< The file from which this world is loaded
    110106
    111     Shell*     shell;
    112     OggPlayer* music;
     107    // IMPORTANT ENTITIES
     108    Camera* localCamera;                //!< The current Camera
     109    Player* localPlayer;                //!< The Player, you fly through the level.
    113110
    114   // IMPORTANT WORLD-ENTITIES
    115     Camera* localCamera;                //!< The current Camera
    116111    WorldEntity* sky;                   //!< The Environmental Heaven of orxonox @todo insert this to environment insted
    117112    Terrain* terrain;                   //!< The Terrain of the NetworkWorld.
    118 
    119     GLuint objectList;                  //!< temporary: @todo this will be ereased soon
    120 
    121     Player* localPlayer;                //!< The Player, you fly through the level.
    122113};
    123114
Note: See TracChangeset for help on using the changeset viewer.