Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6366 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 31, 2005, 1:13:27 PM (19 years ago)
Author:
patrick
Message:

network: inlined some functions

Location:
branches/network/src/story_entities
Files:
4 edited

Legend:

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

    r6361 r6366  
    454454  delete this->glmis;
    455455}
    456 
    457 
    458 /**
    459  *  this returns the current game time
    460  * @returns elapsed game time
    461 */
    462 double GameWorld::getGameTime()
    463 {
    464   return this->gameTime;
    465 }
    466 
    467456
    468457
     
    695684}
    696685
     686/**
     687 *  sets the track path of this world
     688 * @param name the name of the path
     689 */
    697690void GameWorld::setPath( const char* name)
    698691{
     
    711704}
    712705
    713 const char* GameWorld::getPath( void)
    714 {
    715   return path;
    716 }
  • branches/network/src/story_entities/game_world.h

    r6365 r6366  
    3535    void loadParams(const TiXmlElement* root);
    3636
    37     double getGameTime();
    3837
    3938    /* classes from story-entity */
     
    5554    virtual void spawn (WorldEntity* entity);
    5655
    57     /** @param speed sets the speed of the Game */
     56
     57    /**  this returns the current game time @returns elapsed game time     */
     58    inline double getGameTime() { return this->gameTime; }
     59    /** sets the game speed @param speed speed of the Game */
    5860    inline void setSpeed(float speed) { this->speed = speed; };
    59     const char* getPath();
     61    /**  returns the track path of this world @returns the track path */
     62    const char* getPath() {   return path; }
    6063    void setPath( const char* name);
    6164
     65    /** toggles the PNode visibility in the world (drawn as boxes) */
    6266    void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; };
     67    /** toggles the bounding volume (BV) visibility */
    6368    void toggleBVVisibility() { this->showBV = !this->showBV; };
    6469
  • branches/network/src/story_entities/multi_player_world.cc

    r6365 r6366  
    2323#include "fast_factory.h"
    2424#include "factory.h"
     25
     26
     27#include "shell_command.h"
     28#include "resource_manager.h"
     29#include "state.h"
     30
     31#include "game_loader.h"
     32#include "glmenu_imagescreen.h"
     33
     34#include "p_node.h"
     35#include "world_entity.h"
     36#include "player.h"
     37#include "camera.h"
     38#include "environment.h"
     39#include "terrain.h"
     40
     41
    2542
    2643
     
    92109}
    93110
     111
     112
     113
     114/**
     115 *  loads the GameWorld by initializing all resources, and set their default values.
     116 */
     117ErrorMessage MultiPlayerWorld::load()
     118{}
  • branches/network/src/story_entities/multi_player_world.h

    r6365 r6366  
    2626  void loadParams(const TiXmlElement* root);
    2727
     28  virtual ErrorMessage load();
    2829
    2930  private:
Note: See TracChangeset for help on using the changeset viewer.