Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2006, 11:04:50 PM (20 years ago)
Author:
patrick
Message:

network: more modularity for the GameWorld: data and process are now totaly separated from each other, as it should be. Now I will do some magic on the MultiPlayerWorld, see if it works :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/game_world.h

    r6387 r6402  
    77#define _GAME_WORLD_H
    88
    9 #include "sdlincl.h"
     9
    1010#include "story_entity.h"
    11 #include "object_manager.h"
    1211
     12
     13class TiXmlElement;
     14class Shell;
    1315class WorldEntity;
    14 class Camera;
    15 class Player;
    16 class GLMenuImageScreen;
    17 class Terrain;
    18 class TiXmlElement;
     16class GameWorldData;
    1917
    20 class Shell;
    21 class OggPlayer;
    22 class GameWorldData;
    2318
    2419//! The game world
     
    8681
    8782    /* world timing */
    88     Uint32              lastFrame;                   //!< last time of frame
    89     Uint32              cycle;                       //!< The cycle we are in (starts with 0 and rises with every frame)
    90     Uint32              dt;                          //!< time needed to calculate this frame (in milliSeconds)
    91     float               dtS;                         //!< The time needed for caluculations in seconds
    92     float               speed;                       //!< how fast the game flows
    93     double              gameTime;                    //!< this is where the game time is saved
    94 
    95     /* external modules interfaces */
    96     ObjectManager objectManager;                     //!< The ObjectManager of this GameWorld.
     83    Uint32              lastFrame;                    //!< last time of frame
     84    Uint32              cycle;                        //!< The cycle we are in (starts with 0 and rises with every frame)
     85    Uint32              dt;                           //!< time needed to calculate this frame (in milliSeconds)
     86    float               dtS;                          //!< The time needed for caluculations in seconds
     87    float               speed;                        //!< how fast the game flows
     88    double              gameTime;                     //!< this is where the game time is saved
    9789
    9890    /* external modules interfaces */
    9991    Shell*              shell;
    100     OggPlayer*          music;
    101 
    102     /* important entities */
    103 };
    104 
    105 
    106 class GameWorldData : public BaseObject
    107 {
    108 
    109   public:
    110     GameWorldData();
    111     ~GameWorldData();
    112     /* world loading functions */
    113     virtual ErrorMessage loadData(TiXmlElement* root);
    114 
    115     virtual ErrorMessage loadGUI(TiXmlElement* root);
    116     virtual ErrorMessage loadWorldEntities(TiXmlElement* root);
    117     virtual ErrorMessage loadScene(TiXmlElement* root);
    118 
    119   public:
    120     GLMenuImageScreen*  glmis;                        //!< The Level-Loader Display
    121 
    122     Camera*             localCamera;                 //!< The current Camera
    123     Player*             localPlayer;                 //!< The Player, you fly through the level.
    124     WorldEntity*        sky;                         //!< The Environmental Heaven of orxonox @todo insert this to environment insted
    125     Terrain*            terrain;                     //!< The Terrain of the GameWorld.
    126 
    12792};
    12893
Note: See TracChangeset for help on using the changeset viewer.