/*! * @file user_control.h * @brief Control of the stearing device by the User */ #ifndef _USER_CONTROL_H #define _USER_CONTROL_H #include "base_object.h" typedef enum ControlType { CONTROL_AIM_MOVE_ON_SCREEN, CONTROL_AIM_STAYS_CENTERED, CONTROL_AIM_SMOOTHES_CAMERA, CONTROL_AIM_MOVES_SCREEN_ON_EDGE, }; // FORWARD DECLARATION class PNode; //! A Class the main input device uses for stearing the Ship/human/whatsoever through the level class UserControl : public BaseObject { public: UserControl(); virtual ~UserControl(); void setAffectedObjects(PNode* camera, PNode* target); void setFollowObject(PNode* follower); void setControlType(ControlType controlType); private: ControlType controlType; float speed; float suspense; PNode* camera; PNode* target; PNode* follower; }; #endif /* _USER_CONTROL_H */