![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <ProgressiveCameraController.hpp>
Public Member Functions | |
| ProgressiveCameraController (ICamera &camera) | |
| virtual | ~ProgressiveCameraController () |
| void | SetVelocityFactor (const Vector2 &velocityFactor) |
Public Member Functions inherited from yap::CameraController | |
| virtual | ~CameraController () |
| void | SetTarget (ISpatial &target) |
| void | FocusTarget () |
| Forces the controlled ICamera to jump into its target. | |
| void | SetBounds (const FloatRect &bounds) |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Protected Member Functions | |
| virtual void | HandleFocusTarget () |
| virtual void | HandleUpdate (const Time &dt) |
Protected Member Functions inherited from yap::CameraController | |
| CameraController (ICamera &camera) | |
| void | CheckBounds (Vector2 &offset) |
| void | CenterOnTarget () |
Private Member Functions | |
| DISALLOW_COPY (ProgressiveCameraController) | |
Private Attributes | |
| Vector2 | velocityFactor_ |
Static Private Attributes | |
| static const float | CAMERA_MOVE_TRIGGER_LIMIT = 50.0f |
| static const float | MOVE_AMORTIZATION_FACTOR = 180.0f |
| static const float | DEFAULT_VELOCITY_FACTOR = 100.0f |
Additional Inherited Members | |
Protected Attributes inherited from yap::CameraController | |
| ICamera & | camera_ |
| ISpatial * | target_ |
| FloatRect | bounds_ |
Definition at line 9 of file ProgressiveCameraController.hpp.
| yap::ProgressiveCameraController::ProgressiveCameraController | ( | ICamera & | camera | ) |
Definition at line 12 of file ProgressiveCameraController.cpp.
|
virtual |
Definition at line 21 of file ProgressiveCameraController.cpp.
|
private |
|
protectedvirtual |
Implements yap::CameraController.
Definition at line 31 of file ProgressiveCameraController.cpp.
|
protectedvirtual |
Implements yap::CameraController.
Definition at line 36 of file ProgressiveCameraController.cpp.
| void yap::ProgressiveCameraController::SetVelocityFactor | ( | const Vector2 & | velocityFactor | ) |
Definition at line 25 of file ProgressiveCameraController.cpp.
|
staticprivate |
Definition at line 28 of file ProgressiveCameraController.hpp.
|
staticprivate |
Definition at line 30 of file ProgressiveCameraController.hpp.
|
staticprivate |
Definition at line 29 of file ProgressiveCameraController.hpp.
|
private |
Definition at line 32 of file ProgressiveCameraController.hpp.