![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <BaseSprite.hpp>
Public Member Functions | |
| BaseSprite () | |
| virtual | ~BaseSprite () |
ISpatial members. | |
| 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) |
IDrawable members. | |
| virtual void | Draw (IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
IUpdateable members. | |
| 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 () |
| virtual ISprite * | Clone () const |
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 | |
| BaseSprite (const BaseSprite ©) | |
| virtual Vector2 | HandleGetSize () const |
| virtual void | HandleMove (const Vector2 &offset)=0 |
| virtual void | HandleScale (const Vector2 &factor)=0 |
| virtual void | HandleDraw (IDrawingContext &context)=0 |
| virtual void | HandleShow (bool isVisible)=0 |
| virtual void | HandleChangeColor (const sf::Color &color)=0 |
| virtual void | HandleUpdate (const Time &dt)=0 |
Private Member Functions | |
| DISALLOW_ASSIGN (BaseSprite) | |
Private Attributes | |
| SpatialInfo | spatialInfo_ |
| bool | isVisible_ |
| sf::Color | color_ |
Static Private Attributes | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
| static const sf::Color | DEFAULT_COLOR = sf::Color () |
Definition at line 11 of file BaseSprite.hpp.
| yap::BaseSprite::BaseSprite | ( | ) |
Definition at line 8 of file BaseSprite.cpp.
|
virtual |
Definition at line 15 of file BaseSprite.cpp.
|
protected |
Definition at line 122 of file BaseSprite.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 110 of file BaseSprite.cpp.
|
private |
|
virtual |
Implements yap::IDrawable.
Definition at line 90 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 36 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 44 of file BaseSprite.cpp.
|
virtual |
Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
Implements yap::ISpatial.
Definition at line 19 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 52 of file BaseSprite.cpp.
|
virtual |
Gets the size in pixels of this ISpatial.
Implements yap::ISpatial.
Definition at line 24 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 31 of file BaseSprite.cpp.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
protectedvirtual |
Reimplemented in yap::Sprite, yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::SquareComposedSprite, yap::HorizontalComposedSprite, and yap::VerticalComposedSprite.
Definition at line 129 of file BaseSprite.cpp.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
protectedpure virtual |
Implemented in yap::AnimatedSprite, yap::SpriteSet< K >, yap::SpriteSet< yap::String >, yap::Sprite, and yap::ComposedSprite.
|
virtual |
Implements yap::IDrawable.
Definition at line 98 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 60 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 67 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 77 of file BaseSprite.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 82 of file BaseSprite.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 103 of file BaseSprite.cpp.
|
virtual |
Makes the object evolve for one frame of the game.
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 117 of file BaseSprite.cpp.
|
private |
Definition at line 76 of file BaseSprite.hpp.
|
staticprivate |
Definition at line 72 of file BaseSprite.hpp.
|
staticprivate |
Definition at line 71 of file BaseSprite.hpp.
|
private |
Definition at line 75 of file BaseSprite.hpp.
|
mutableprivate |
Definition at line 74 of file BaseSprite.hpp.