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

Switches to the next frame at each game loop cycle. More...

#include <AnyFrameSwitcher.hpp>

Inheritance diagram for yap::AnyFrameSwitcher:
Collaboration diagram for yap::AnyFrameSwitcher:

List of all members.

Public Member Functions

 AnyFrameSwitcher ()
 AnyFrameSwitcher (int switchCount)
virtual ~AnyFrameSwitcher ()
ICloneable members.
virtual AnyFrameSwitcherClone () const
- Public Member Functions inherited from yap::FrameSwitcher
virtual ~FrameSwitcher ()
int FrameIsOver (const Time &dt)
 Indicates how many frames have to be switched.
- Public Member Functions inherited from yap::ICloneable
virtual ~ICloneable ()

Protected Member Functions

 AnyFrameSwitcher (const AnyFrameSwitcher &copy)
- Protected Member Functions inherited from yap::FrameSwitcher
 FrameSwitcher ()

Private Member Functions

 DISALLOW_ASSIGN (AnyFrameSwitcher)
virtual int HandleFrameIsOver (const Time &dt)

Private Attributes

int switchCount_

Static Private Attributes

static const int DEFAULT_SWITCH_COUNT = 1

Detailed Description

Switches to the next frame at each game loop cycle.

Definition at line 10 of file AnyFrameSwitcher.hpp.


Constructor & Destructor Documentation

yap::AnyFrameSwitcher::AnyFrameSwitcher ( )

Definition at line 7 of file AnyFrameSwitcher.cpp.

Here is the caller graph for this function:

yap::AnyFrameSwitcher::AnyFrameSwitcher ( int  switchCount)
explicit

Definition at line 13 of file AnyFrameSwitcher.cpp.

yap::AnyFrameSwitcher::~AnyFrameSwitcher ( )
virtual

Definition at line 19 of file AnyFrameSwitcher.cpp.

yap::AnyFrameSwitcher::AnyFrameSwitcher ( const AnyFrameSwitcher copy)
protected

Definition at line 23 of file AnyFrameSwitcher.cpp.


Member Function Documentation

AnyFrameSwitcher * yap::AnyFrameSwitcher::Clone ( ) const
virtual

Implements yap::FrameSwitcher.

Definition at line 29 of file AnyFrameSwitcher.cpp.

Here is the call graph for this function:

yap::AnyFrameSwitcher::DISALLOW_ASSIGN ( AnyFrameSwitcher  )
private
int yap::AnyFrameSwitcher::HandleFrameIsOver ( const Time dt)
privatevirtual

Implements yap::FrameSwitcher.

Definition at line 34 of file AnyFrameSwitcher.cpp.


Member Data Documentation

const int yap::AnyFrameSwitcher::DEFAULT_SWITCH_COUNT = 1
staticprivate

Definition at line 33 of file AnyFrameSwitcher.hpp.

int yap::AnyFrameSwitcher::switchCount_
private

Definition at line 35 of file AnyFrameSwitcher.hpp.


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