![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
A simple static ISprite that holds a Texture. More...
#include <Sprite.hpp>
Public Member Functions | |
| Sprite () | |
| Sprite (Texture *texture) | |
| Sprite (const String &textureName) | |
| Sprite (const String &textureName, const sf::IntRect &textureRect) | |
| virtual | ~Sprite () |
| void | SetTexture (Texture *texture) |
ICloneable members. | |
| virtual Sprite * | 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 | |
| Sprite (const Sprite ©) | |
Protected Member Functions inherited from yap::BaseSprite | |
| BaseSprite (const BaseSprite ©) | |
Private Member Functions | |
| DISALLOW_ASSIGN (Sprite) | |
| 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) |
| Vector2 | HandleGetSize () const |
Private Attributes | |
| Texture * | texture_ |
A simple static ISprite that holds a Texture.
Definition at line 11 of file Sprite.hpp.
| yap::Sprite::Sprite | ( | ) |
|
explicit |
Definition at line 11 of file Sprite.cpp.
|
explicit |
Definition at line 17 of file Sprite.cpp.
| yap::Sprite::Sprite | ( | const String & | textureName, |
| const sf::IntRect & | textureRect | ||
| ) |
Definition at line 23 of file Sprite.cpp.
|
virtual |
Definition at line 29 of file Sprite.cpp.
|
protected |
Definition at line 45 of file Sprite.cpp.
|
virtual |
Reimplemented from yap::ISprite.
Definition at line 40 of file Sprite.cpp.
|
private |
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 75 of file Sprite.cpp.
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 66 of file Sprite.cpp.
|
privatevirtual |
Reimplemented from yap::BaseSprite.
Definition at line 51 of file Sprite.cpp.
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 56 of file Sprite.cpp.
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 61 of file Sprite.cpp.
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 71 of file Sprite.cpp.
|
privatevirtual |
Implements yap::BaseSprite.
Definition at line 80 of file Sprite.cpp.
| void yap::Sprite::SetTexture | ( | Texture * | texture | ) |
|
private |
Definition at line 50 of file Sprite.hpp.