Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/state.h @ 5631

Last change on this file since 5631 was 5405, checked in by bensch, 19 years ago

orxonox/trunk: renamed definition to the right term declaration…

File size: 1.6 KB
RevLine 
[4597]1/*!
[5039]2 * @file state.h
[5405]3 * Definition of the States Class
[3655]4*/
5
[4293]6#ifndef _STATE_H
7#define _STATE_H
[3655]8
[5405]9// FORWARD DECLARATION
[4293]10class PNode;
[4827]11class WorldEntity;
12template<class T> class tList;
[5405]13//template<class T> class tStack;
[3655]14
[5405]15//! handles states about orxonox's most importatn objects
16/**
17 * This is an abstract Class-container, not really a Class.
18 * in this Class only static references to the most important
19 * Objects/List/etc. are stored.
20 */
21class State {
[3655]22
23 public:
[4827]24  // CAMERA //
25  /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */
26  static void setCamera(const PNode* camera, const PNode* cameraTarget);
27  /** @returns a Pointer to the PNode of the Camera */
28  static inline const PNode* getCamera() { return State::camera; };
29  /** @returns a Pointer to the CameraTarget */
30  static inline const PNode* getCameraTarget() { return State::cameraTarget; };
[4485]31
[4827]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; };
[3655]37
38 private:
[4746]39  State();
[4293]40
[4827]41  static const PNode*           camera;             //!< A reference to the camera
[5405]42  static const PNode*           cameraTarget;       //!< A reference to the cameraTarget
43  static PNode*                 nullParent;         //!< A reference to the Null-PNode.
[4827]44
45  static tList<WorldEntity>*    worldEntityList;    //!< The List of the worldEntities
[5405]46
47  //tStack<
[3655]48};
49
[4293]50#endif /* _STATE_H */
Note: See TracBrowser for help on using the repository browser.