Changeset 5040 in orxonox.OLD for orxonox/trunk/src/util/user_control.h
- Timestamp:
- Aug 16, 2005, 7:24:18 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/user_control.h
r5038 r5040 1 1 /*! 2 * @file proto_class.h3 * @brief Definition of ...2 * @file user_control.h 3 * @brief Control of the stearing device by the User 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _USER_CONTROL_H 7 #define _USER_CONTROL_H 8 8 9 9 #include "base_object.h" 10 10 11 typedef 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 11 19 // FORWARD DECLARATION 20 class PNode; 12 21 13 22 14 15 //! A class for ... 16 class ProtoClass : public BaseObject { 23 //! A Class the main input device uses for stearing the Ship/human/whatsoever through the level 24 class UserControl : public BaseObject { 17 25 18 26 public: 19 ProtoClass();20 virtual ~ ProtoClass();27 UserControl(); 28 virtual ~UserControl(); 21 29 30 void setAffectedObjects(PNode* camera, PNode* target); 31 void setFollowObject(PNode* follower); 32 33 void setControlType(ControlType controlType); 22 34 23 35 private: 36 ControlType controlType; 37 float speed; 38 float suspense; 39 40 PNode* camera; 41 PNode* target; 42 PNode* follower; 24 43 25 44 }; 26 45 27 #endif /* _ PROTO_CLASS_H */46 #endif /* _USER_CONTROL_H */
Note: See TracChangeset
for help on using the changeset viewer.