Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5030 was 4836, checked in by bensch, 19 years ago

orxonox/trunk: renamed all the \param → @param and so on in Doxygen tags.
Thanks a lot to the kDevelop team. this took since the last commit :)

File size: 1.4 KB
Line 
1/*!
2    \file state.h
3  *  Definition of the States-singleton Class
4*/
5
6#ifndef _STATE_H
7#define _STATE_H
8
9#include "base_object.h"
10
11// FORWARD DEFINITION
12class PNode;
13class WorldEntity;
14template<class T> class tList;
15
16//! A Singleton class, that handles some states about orxonox's objects
17class State : public BaseObject {
18
19 public:
20  // CAMERA //
21  /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */
22  static void setCamera(const PNode* camera, const PNode* cameraTarget);
23  /** @returns a Pointer to the PNode of the Camera */
24  static inline const PNode* getCamera() { return State::camera; };
25  /** @returns a Pointer to the CameraTarget */
26  static inline const PNode* getCameraTarget() { return State::cameraTarget; };
27
28  // WORLD_ENTITY_LIST //
29  /** @param worldEntityList The World's List of WorldEntities */
30  static inline void setWorldEntityList(tList<WorldEntity>* worldEntityList) { State::worldEntityList = worldEntityList; };
31  /** @returns the List of WorldEntities */
32  static inline tList<WorldEntity>* getWorldEntityList() { return State::worldEntityList; };
33
34 private:
35  State();
36
37  static const PNode*           camera;             //!< A reference to the camera
38  static const PNode*           cameraTarget;       //!< a reference to the cameraTarget
39
40  static tList<WorldEntity>*    worldEntityList;    //!< The List of the worldEntities
41};
42
43#endif /* _STATE_H */
Note: See TracBrowser for help on using the repository browser.