| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- #include "CmPrerequisites.h"
- #include "CmComponent.h"
- #include "CmInputHandler.h"
- namespace CamelotEngine
- {
- class DebugCamera : public Component
- {
- private:
- float mCurrentSpeed;
- bool mGoingForward;
- bool mGoingBack;
- bool mGoingLeft;
- bool mGoingRight;
- bool mFastMove;
- bool mCameraRotating;
- CameraPtr mCamera;
- void keyDown(CamelotEngine::KeyCode keyCode);
- void keyUp(CamelotEngine::KeyCode keyCode);
- void mouseDown(const CamelotEngine::MouseEvent& event, CamelotEngine::MouseButton buttonID);
- void mouseUp(const CamelotEngine::MouseEvent& event, CamelotEngine::MouseButton buttonID);
- static const float START_SPEED;
- static const float TOP_SPEED;
- static const float ACCELERATION;
- static const float FAST_MODE_MULTIPLIER;
- static const float ROTATION_SPEED; // Degrees/second
- /************************************************************************/
- /* COMPONENT OVERRIDES */
- /************************************************************************/
- private:
- friend class GameObject;
- /** Standard constructor.
- */
- DebugCamera(GameObjectPtr parent);
- public:
- virtual void update();
- };
- }
|