YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ComposedSprite.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_COMPOSEDSPRITE_HPP
2
# define YAPOG_COMPOSEDSPRITE_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Game/Sprite/BaseSprite.hpp
"
6
# include "
YAPOG/Collection/Array.hpp
"
7
8
namespace
yap
9
{
10
class
YAPOG_LIB
ComposedSprite
:
public
BaseSprite
11
{
12
DISALLOW_COPY
(
ComposedSprite
);
13
14
public
:
15
16
ComposedSprite
();
17
virtual
~
ComposedSprite
();
18
21
void
Init ();
22
23
protected
:
24
25
void
AddSprite (
ISprite
* sprite);
26
ISprite
& GetSprite (
27
const
collection::Array<ISprite*>::SizeType
& index)
const
;
28
29
virtual
void
HandleMove (
const
Vector2
& offset);
30
virtual
void
HandleScale (
const
Vector2
& factor);
31
32
virtual
void
HandleDraw (
IDrawingContext
& context);
33
34
virtual
void
HandleShow (
bool
isVisible);
35
virtual
void
HandleChangeColor (
const
sf::Color& color);
36
37
virtual
void
HandleUpdate (
const
Time
& dt);
38
39
virtual
void
UpdatePosition () = 0;
40
41
private
:
42
43
collection::Array<ISprite*>
sprites_
;
44
};
45
}
// namespace yap
46
47
#endif // YAPOG_COMPOSEDSPRITE_HPP
YAPOG
include
YAPOG
Graphics
Game
Sprite
ComposedSprite.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1