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

#include <Timer.hpp>

Collaboration diagram for yap::Timer:

List of all members.

Public Member Functions

 Timer ()
 Timer (const Time &init)
void Reset ()
void Reset (const Time &init)
Time GetCurrentTime () const
int DelayIsComplete (const Time &delay, bool reset)

Private Member Functions

 DISALLOW_COPY (Timer)

Private Attributes

sf::Clock clock_
Time init_

Detailed Description

Definition at line 11 of file Timer.hpp.


Constructor & Destructor Documentation

yap::Timer::Timer ( )

Definition at line 5 of file Timer.cpp.

yap::Timer::Timer ( const Time init)
explicit

Definition at line 11 of file Timer.cpp.


Member Function Documentation

int yap::Timer::DelayIsComplete ( const Time delay,
bool  reset 
)

Definition at line 34 of file Timer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::Timer::DISALLOW_COPY ( Timer  )
private
Time yap::Timer::GetCurrentTime ( ) const

Definition at line 29 of file Timer.cpp.

Here is the caller graph for this function:

void yap::Timer::Reset ( )

Definition at line 17 of file Timer.cpp.

Here is the caller graph for this function:

void yap::Timer::Reset ( const Time init)

Definition at line 22 of file Timer.cpp.


Member Data Documentation

sf::Clock yap::Timer::clock_
private

Definition at line 28 of file Timer.hpp.

Time yap::Timer::init_
private

Definition at line 29 of file Timer.hpp.


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