Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/user_control.h @ 5045

Last change on this file since 5045 was 5040, checked in by bensch, 19 years ago

orxonox/trunk: inventing a new Way to get all the different kinds of User-Interface-Control below one hat.
This should be the ground-stone for all the different Camera-Modi as proposed in ticket:60 and ticket:61.
Maybe, there will be a better idea soon. In this case i would not implement, what i am doing here. :/

File size: 951 bytes
RevLine 
[4838]1/*!
[5040]2 * @file user_control.h
3 * @brief Control of the stearing device by the User
[3245]4*/
[1853]5
[5040]6#ifndef _USER_CONTROL_H
7#define _USER_CONTROL_H
[1853]8
[3543]9#include "base_object.h"
[1853]10
[5040]11typedef enum ControlType
12{
13  CONTROL_AIM_MOVE_ON_SCREEN,
14  CONTROL_AIM_STAYS_CENTERED,
15  CONTROL_AIM_SMOOTHES_CAMERA,
16  CONTROL_AIM_MOVES_SCREEN_ON_EDGE,
17};
18
[4838]19// FORWARD DECLARATION
[5040]20class PNode;
[3543]21
22
[5040]23//! A Class the main input device uses for stearing the Ship/human/whatsoever through the level
24class UserControl : public BaseObject {
[2036]25
[1904]26 public:
[5040]27  UserControl();
28  virtual ~UserControl();
[1853]29
[5040]30  void setAffectedObjects(PNode* camera, PNode* target);
31  void setFollowObject(PNode* follower);
[3245]32
[5040]33  void setControlType(ControlType controlType);
34
[3245]35 private:
[5040]36   ControlType            controlType;
37   float                  speed;
38   float                  suspense;
[3245]39
[5040]40   PNode*                 camera;
41   PNode*                 target;
42   PNode*                 follower;
43
[1853]44};
45
[5040]46#endif /* _USER_CONTROL_H */
Note: See TracBrowser for help on using the repository browser.