Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6142 in orxonox.OLD for trunk/src/util/state.h


Ignore:
Timestamp:
Dec 16, 2005, 7:13:57 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merge the ObjectManager to the trunk
merged with command:
svn merge -r6082:HEAD objectmanager/ ../trunk/

conflicts resolution was easy this time :)
but specially merged the world to network_world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/state.h

    r5405 r6142  
    1010class PNode;
    1111class WorldEntity;
    12 template<class T> class tList;
    13 //template<class T> class tStack;
     12class ObjectManager;
    1413
    1514//! handles states about orxonox's most importatn objects
     
    2221
    2322 public:
    24   // CAMERA //
     23   //////////////
     24   /// CAMERA ///
     25   //////////////
    2526  /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */
    2627  static void setCamera(const PNode* camera, const PNode* cameraTarget);
     
    3031  static inline const PNode* getCameraTarget() { return State::cameraTarget; };
    3132
    32   // WORLD_ENTITY_LIST //
    33   /** @param worldEntityList The World's List of WorldEntities */
    34   static inline void setWorldEntityList(tList<WorldEntity>* worldEntityList) { State::worldEntityList = worldEntityList; };
    35   /** @returns the List of WorldEntities */
    36   static inline tList<WorldEntity>* getWorldEntityList() { return State::worldEntityList; };
     33  //////////////////////
     34  /// OBJECT-MANAGER ///
     35  //////////////////////
     36  /** @param objectManager the new Current ObjectManager */
     37  static inline void setObjectManager(ObjectManager* objectManager) { State::objectManager = objectManager; };
     38  /** @returns the current ObjectManager. */
     39  static inline ObjectManager* getObjectManager() { return State::objectManager; };
     40
     41  /////////////////////////
     42  /// WORLD_ENTITY_LIST ///
     43  /////////////////////////
    3744
    3845 private:
     
    4249  static const PNode*           cameraTarget;       //!< A reference to the cameraTarget
    4350  static PNode*                 nullParent;         //!< A reference to the Null-PNode.
     51  static ObjectManager*         objectManager;      //!< A referenct to the current ObjectManager
    4452
    45   static tList<WorldEntity>*    worldEntityList;    //!< The List of the worldEntities
    46 
    47   //tStack<
    4853};
    4954
Note: See TracChangeset for help on using the changeset viewer.