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

#include <CameraController.hpp>

Inheritance diagram for yap::CameraController:
Collaboration diagram for yap::CameraController:

List of all members.

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

ICameracamera_
ISpatialtarget_
FloatRect bounds_

Private Member Functions

 DISALLOW_COPY (CameraController)

Detailed Description

Definition at line 13 of file CameraController.hpp.


Constructor & Destructor Documentation

yap::CameraController::~CameraController ( )
virtual

Definition at line 13 of file CameraController.cpp.

yap::CameraController::CameraController ( ICamera camera)
explicitprotected

Definition at line 6 of file CameraController.cpp.


Member Function Documentation

void yap::CameraController::CenterOnTarget ( )
protected

Definition at line 54 of file CameraController.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::CameraController::CheckBounds ( Vector2 offset)
protected

Definition at line 37 of file CameraController.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::CameraController::DISALLOW_COPY ( CameraController  )
private
void yap::CameraController::FocusTarget ( )

Forces the controlled ICamera to jump into its target.

Definition at line 22 of file CameraController.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void yap::CameraController::HandleFocusTarget ( )
protectedpure virtual

Implemented in yap::ProgressiveCameraController, and yap::CenteredCameraController.

Here is the caller graph for this function:

virtual void yap::CameraController::HandleUpdate ( const Time dt)
protectedpure virtual

Implemented in yap::ProgressiveCameraController, and yap::CenteredCameraController.

Here is the caller graph for this function:

void yap::CameraController::SetBounds ( const FloatRect bounds)

Definition at line 27 of file CameraController.cpp.

Here is the caller graph for this function:

void yap::CameraController::SetTarget ( ISpatial target)

Definition at line 17 of file CameraController.cpp.

Here is the caller graph for this function:

void yap::CameraController::Update ( const Time dt)
virtual

Makes the object evolve for one frame of the game.

Parameters:
dtDelta time since the last frame.

Implements yap::IUpdateable.

Definition at line 32 of file CameraController.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

FloatRect yap::CameraController::bounds_
protected

Definition at line 48 of file CameraController.hpp.

ICamera& yap::CameraController::camera_
protected

Definition at line 45 of file CameraController.hpp.

ISpatial* yap::CameraController::target_
protected

Definition at line 46 of file CameraController.hpp.


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