Changeset 5040 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Aug 16, 2005, 7:24:18 PM (19 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/user_control.cc
r5038 r5040 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ … … 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "user_control.h" 19 19 20 20 using namespace std; 21 22 21 23 22 /** … … 25 24 * @todo this constructor is not jet implemented - do it 26 25 */ 27 ProtoClass::ProtoClass()26 UserControl::UserControl () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_USER_CONTROL, "UserControl"); 30 29 31 30 /* If you make a new class, what is most probably the case when you write this file … … 45 44 * standard deconstructor 46 45 */ 47 ProtoClass::~ProtoClass()46 UserControl::~UserControl () 48 47 { 49 48 // delete what has to be deleted here -
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.