Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6121 in orxonox.OLD for branches/objectmanager/src/util/state.h


Ignore:
Timestamp:
Dec 15, 2005, 1:34:32 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: packing the first entities into their lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/objectmanager/src/util/state.h

    r5405 r6121  
    1111class WorldEntity;
    1212template<class T> class tList;
    13 //template<class T> class tStack;
     13class ObjectManager;
    1414
    1515//! handles states about orxonox's most importatn objects
     
    2222
    2323 public:
    24   // CAMERA //
     24   //////////////
     25   /// CAMERA ///
     26   //////////////
    2527  /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */
    2628  static void setCamera(const PNode* camera, const PNode* cameraTarget);
     
    3032  static inline const PNode* getCameraTarget() { return State::cameraTarget; };
    3133
    32   // WORLD_ENTITY_LIST //
     34  //////////////////////
     35  /// OBJECT-MANAGER ///
     36  //////////////////////
     37  /** @param objectManager the new Current ObjectManager */
     38  static inline void setObjectManager(ObjectManager* objectManager) { State::objectManager = objectManager; };
     39  /** @returns the current ObjectManager. */
     40  static inline ObjectManager* getObjectManager() { return State::objectManager; };
     41
     42  /////////////////////////
     43  /// WORLD_ENTITY_LIST ///
     44  /////////////////////////
    3345  /** @param worldEntityList The World's List of WorldEntities */
    3446  static inline void setWorldEntityList(tList<WorldEntity>* worldEntityList) { State::worldEntityList = worldEntityList; };
     
    4254  static const PNode*           cameraTarget;       //!< A reference to the cameraTarget
    4355  static PNode*                 nullParent;         //!< A reference to the Null-PNode.
     56  static ObjectManager*         objectManager;      //!< A referenct to the current ObjectManager
    4457
    4558  static tList<WorldEntity>*    worldEntityList;    //!< The List of the worldEntities
Note: See TracChangeset for help on using the changeset viewer.