YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
AnyFrameSwitcher.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Graphics/Game/Sprite/AnyFrameSwitcher.hpp
"
2
3
namespace
yap
4
{
5
const
int
AnyFrameSwitcher::DEFAULT_SWITCH_COUNT
= 1;
6
7
AnyFrameSwitcher::AnyFrameSwitcher
()
8
:
FrameSwitcher
()
9
, switchCount_ (DEFAULT_SWITCH_COUNT)
10
{
11
}
12
13
AnyFrameSwitcher::AnyFrameSwitcher
(
int
switchCount)
14
:
FrameSwitcher
()
15
, switchCount_ (switchCount)
16
{
17
}
18
19
AnyFrameSwitcher::~AnyFrameSwitcher
()
20
{
21
}
22
23
AnyFrameSwitcher::AnyFrameSwitcher
(
const
AnyFrameSwitcher
& copy)
24
:
FrameSwitcher
(copy)
25
, switchCount_ (copy.switchCount_)
26
{
27
}
28
29
AnyFrameSwitcher
*
AnyFrameSwitcher::Clone
()
const
30
{
31
return
new
AnyFrameSwitcher
(*
this
);
32
}
33
34
int
AnyFrameSwitcher::HandleFrameIsOver
(
const
Time
& dt)
35
{
36
return
switchCount_
;
37
}
38
}
// namespace yap
YAPOG
src
YAPOG
Graphics
Game
Sprite
AnyFrameSwitcher.cpp
Generated on Mon Sep 17 2012 22:24:25 for YAPOG by
1.8.1.1