![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
Maps ISprite with keys. Represents an ISprite that changes of state over the time. More...
#include <SpriteSet.hpp>
Public Types | |
| typedef K | KeyType |
Public Member Functions | |
| SpriteSet () | |
| virtual | ~SpriteSet () |
| void | AddSprite (const KeyType &key, ISprite *sprite) |
| void | RemoveSprite (const KeyType &key) |
| void | SetCurrentSprite (const KeyType &key) |
| void | SetDefaultKey (const KeyType &key) |
| void | SetDefaultSprite () |
ICloneable members. | |
| virtual SpriteSet * | Clone () const |
Public Member Functions inherited from yap::BaseSprite | |
| BaseSprite () | |
| virtual | ~BaseSprite () |
| virtual const Vector2 & | GetPosition () const |
| Gets the coordinates in pixels of the origin of this ISpatial from the global origin. | |
| virtual const Vector2 & | GetSize () const |
| Gets the size in pixels of this ISpatial. | |
| virtual const Vector2 & | GetTopLeft () const |
| virtual const Vector2 & | GetBottomRight () const |
| virtual const Vector2 & | GetCenter () const |
| virtual const FloatRect & | GetRectangle () const |
| virtual void | Move (const Vector2 &offset) |
| virtual void | Scale (const Vector2 &factor) |
| virtual void | SetPosition (const Vector2 &position) |
| virtual void | SetSize (const Vector2 &size) |
| virtual void | Draw (IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::ISprite | |
| virtual | ~ISprite () |
Public Member Functions inherited from yap::ISpatial | |
| virtual | ~ISpatial () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::ILoadable | |
| virtual | ~ILoadable () |
Public Member Functions inherited from yap::ICloneable | |
| virtual | ~ICloneable () |
Protected Member Functions | |
| SpriteSet (const SpriteSet ©) | |
| virtual Vector2 | HandleGetSize () const |
| virtual void | HandleMove (const Vector2 &offset) |
| virtual void | HandleScale (const Vector2 &factor) |
| virtual void | HandleDraw (IDrawingContext &context) |
| virtual void | HandleShow (bool isVisible) |
| virtual void | HandleChangeColor (const sf::Color &color) |
| virtual void | HandleUpdate (const Time &dt) |
Protected Member Functions inherited from yap::BaseSprite | |
| BaseSprite (const BaseSprite ©) | |
Private Member Functions | |
| DISALLOW_ASSIGN (SpriteSet) | |
Private Attributes | |
| KeyType | currentKey_ |
| KeyType | defaultKey_ |
| ISprite * | currentSprite_ |
| collection::Map< KeyType, ISprite * > | sprites_ |
Maps ISprite with keys. Represents an ISprite that changes of state over the time.
Definition at line 13 of file SpriteSet.hpp.
| typedef K yap::SpriteSet< K >::KeyType |
Definition at line 19 of file SpriteSet.hpp.
|
inline |
Definition at line 7 of file SpriteSet.hxx.
|
inlinevirtual |
Definition at line 32 of file SpriteSet.hxx.
|
inlineprotected |
|
inline |
|
inlinevirtual |
Reimplemented from yap::ISprite.
Definition at line 39 of file SpriteSet.hxx.
|
private |
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 122 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 111 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Reimplemented from yap::BaseSprite.
Definition at line 91 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 97 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 104 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 117 of file SpriteSet.hxx.
|
inlineprotectedvirtual |
Implements yap::BaseSprite.
Definition at line 129 of file SpriteSet.hxx.
|
inline |
Definition at line 60 of file SpriteSet.hxx.
|
inline |
|
inline |
|
inline |
Definition at line 85 of file SpriteSet.hxx.
|
private |
Definition at line 54 of file SpriteSet.hpp.
|
private |
Definition at line 56 of file SpriteSet.hpp.
|
private |
Definition at line 55 of file SpriteSet.hpp.
|
private |
Definition at line 57 of file SpriteSet.hpp.