YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::ProgressiveCameraController Class Reference

#include <ProgressiveCameraController.hpp>

Inheritance diagram for yap::ProgressiveCameraController:
Collaboration diagram for yap::ProgressiveCameraController:

List of all members.

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
ICameracamera_
ISpatialtarget_
FloatRect bounds_

Detailed Description

Definition at line 9 of file ProgressiveCameraController.hpp.


Constructor & Destructor Documentation

yap::ProgressiveCameraController::ProgressiveCameraController ( ICamera camera)

Definition at line 12 of file ProgressiveCameraController.cpp.

yap::ProgressiveCameraController::~ProgressiveCameraController ( )
virtual

Definition at line 21 of file ProgressiveCameraController.cpp.


Member Function Documentation

yap::ProgressiveCameraController::DISALLOW_COPY ( ProgressiveCameraController  )
private
void yap::ProgressiveCameraController::HandleFocusTarget ( )
protectedvirtual

Implements yap::CameraController.

Definition at line 31 of file ProgressiveCameraController.cpp.

Here is the call graph for this function:

void yap::ProgressiveCameraController::HandleUpdate ( const Time dt)
protectedvirtual

Implements yap::CameraController.

Definition at line 36 of file ProgressiveCameraController.cpp.

Here is the call graph for this function:

void yap::ProgressiveCameraController::SetVelocityFactor ( const Vector2 velocityFactor)

Definition at line 25 of file ProgressiveCameraController.cpp.

Here is the caller graph for this function:


Member Data Documentation

const float yap::ProgressiveCameraController::CAMERA_MOVE_TRIGGER_LIMIT = 50.0f
staticprivate

Definition at line 28 of file ProgressiveCameraController.hpp.

const float yap::ProgressiveCameraController::DEFAULT_VELOCITY_FACTOR = 100.0f
staticprivate

Definition at line 30 of file ProgressiveCameraController.hpp.

const float yap::ProgressiveCameraController::MOVE_AMORTIZATION_FACTOR = 180.0f
staticprivate

Definition at line 29 of file ProgressiveCameraController.hpp.

Vector2 yap::ProgressiveCameraController::velocityFactor_
private

Definition at line 32 of file ProgressiveCameraController.hpp.


The documentation for this class was generated from the following files: