![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <CameraController.hpp>
Public Member Functions | |
| virtual | ~CameraController () |
| void | SetTarget (ISpatial &target) |
| void | FocusTarget () |
| Forces the controlled ICamera to jump into its target. | |
| void | SetBounds (const FloatRect &bounds) |
IUpdateable members. | |
| 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 | |
| CameraController (ICamera &camera) | |
| void | CheckBounds (Vector2 &offset) |
| void | CenterOnTarget () |
| virtual void | HandleFocusTarget ()=0 |
| virtual void | HandleUpdate (const Time &dt)=0 |
Protected Attributes | |
| ICamera & | camera_ |
| ISpatial * | target_ |
| FloatRect | bounds_ |
Private Member Functions | |
| DISALLOW_COPY (CameraController) | |
Definition at line 13 of file CameraController.hpp.
|
virtual |
Definition at line 13 of file CameraController.cpp.
|
explicitprotected |
Definition at line 6 of file CameraController.cpp.
|
protected |
Definition at line 54 of file CameraController.cpp.
|
protected |
Definition at line 37 of file CameraController.cpp.
|
private |
| void yap::CameraController::FocusTarget | ( | ) |
Forces the controlled ICamera to jump into its target.
Definition at line 22 of file CameraController.cpp.
|
protectedpure virtual |
Implemented in yap::ProgressiveCameraController, and yap::CenteredCameraController.
|
protectedpure virtual |
Implemented in yap::ProgressiveCameraController, and yap::CenteredCameraController.
| void yap::CameraController::SetBounds | ( | const FloatRect & | bounds | ) |
| void yap::CameraController::SetTarget | ( | ISpatial & | target | ) |
|
virtual |
Makes the object evolve for one frame of the game.
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 32 of file CameraController.cpp.
|
protected |
Definition at line 48 of file CameraController.hpp.
|
protected |
Definition at line 45 of file CameraController.hpp.
|
protected |
Definition at line 46 of file CameraController.hpp.