Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4480 was 4338, checked in by bensch, 20 years ago

orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/

File size: 706 bytes
Line 
1/*!
2    \file proto_singleton.h
3    \brief Definition of the States-singleton Class
4   
5*/
6
7#ifndef _STATE_H
8#define _STATE_H
9
10#include "base_object.h"
11
12// FORWARD DEFINITION
13class PNode;
14
15//! A Singleton class, that handles some states about orxonox's objects
16class State : public BaseObject {
17
18 public:
19  static State* getInstance(void);
20  virtual ~State(void);
21
22  void setCamera(const PNode* camera, const PNode* cameraTarget);
23  const PNode* getCamera(void) const { return this->camera; };
24  const PNode* getCameraTarget(void) const { return this->cameraTarget; };
25
26 private:
27  State(void);
28  static State* singletonRef;
29
30  const PNode* camera;
31  const PNode* cameraTarget;
32};
33
34#endif /* _STATE_H */
Note: See TracBrowser for help on using the repository browser.