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

#include <CenteredCameraController.hpp>

Inheritance diagram for yap::CenteredCameraController:
Collaboration diagram for yap::CenteredCameraController:

List of all members.

Public Member Functions

 CenteredCameraController (ICamera &camera)
virtual ~CenteredCameraController ()
- 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 (CenteredCameraController)

Additional Inherited Members

- Protected Attributes inherited from yap::CameraController
ICameracamera_
ISpatialtarget_
FloatRect bounds_

Detailed Description

Definition at line 9 of file CenteredCameraController.hpp.


Constructor & Destructor Documentation

yap::CenteredCameraController::CenteredCameraController ( ICamera camera)

Definition at line 7 of file CenteredCameraController.cpp.

yap::CenteredCameraController::~CenteredCameraController ( )
virtual

Definition at line 12 of file CenteredCameraController.cpp.


Member Function Documentation

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

Implements yap::CameraController.

Definition at line 16 of file CenteredCameraController.cpp.

Here is the call graph for this function:

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

Implements yap::CameraController.

Definition at line 21 of file CenteredCameraController.cpp.

Here is the call graph for this function:


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