Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6459 in orxonox.OLD for branches/network/src/util


Ignore:
Timestamp:
Jan 10, 2006, 2:00:20 AM (19 years ago)
Author:
patrick
Message:

network: skybox parenting fix

Location:
branches/network/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/state.cc

    r6222 r6459  
    3131ObjectManager* State::objectManager = NULL;
    3232
     33StoryEntity* State::storyEntity = NULL;
     34
    3335/**
    3436 *  sets camera and target of the current Camera
  • branches/network/src/util/state.h

    r6222 r6459  
    77#define _STATE_H
    88
     9
    910// FORWARD DECLARATION
    1011class PNode;
    1112class WorldEntity;
    1213class ObjectManager;
     14class StoryEntity;
    1315
    1416//! handles states about orxonox's most importatn objects
     
    3941  static inline ObjectManager* getObjectManager() { return State::objectManager; };
    4042
     43  //////////////////////
     44  /// STORY-ENTITY   ///
     45  //////////////////////
     46  /** @param storyEntity sets the current StoryEntity that is been played */
     47  static inline void setCurrentStoryEntity(StoryEntity* storyEntity) { State::storyEntity = storyEntity; };
     48  /** @returns the current StoryEntity played */
     49  static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; };
     50
     51
    4152  /////////////////////////
    4253  /// WORLD_ENTITY_LIST ///
     
    4960  static PNode*                 cameraTarget;       //!< A reference to the cameraTarget
    5061  static PNode*                 nullParent;         //!< A reference to the Null-PNode.
    51   static ObjectManager*         objectManager;      //!< A referenct to the current ObjectManager
     62  static ObjectManager*         objectManager;      //!< A reference to the current ObjectManager
     63  static StoryEntity*           storyEntity;        //!< A reference to the current StoryEntity played
    5264
    5365};
Note: See TracChangeset for help on using the changeset viewer.