YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::RegularAnimatedSprite Class Reference

#include <RegularAnimatedSprite.hpp>

Inheritance diagram for yap::RegularAnimatedSprite:
Collaboration diagram for yap::RegularAnimatedSprite:

List of all members.

Public Member Functions

 RegularAnimatedSprite ()
 RegularAnimatedSprite (const Time &delay)
 RegularAnimatedSprite (int frameRate)
virtual ~RegularAnimatedSprite ()
ICloneable members.
virtual RegularAnimatedSpriteClone () const
- Public Member Functions inherited from yap::AnimatedSprite
virtual ~AnimatedSprite ()
void AddFrame (ISprite *sprite)
void RemoveFrame (ISprite *sprite)
void ChangeState (PlayState playState)
void SetDefaultFrame (IndexType index)
- Public Member Functions inherited from yap::BaseSprite
 BaseSprite ()
virtual ~BaseSprite ()
virtual const Vector2GetPosition () const
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const
virtual const Vector2GetBottomRight () const
virtual const Vector2GetCenter () const
virtual const FloatRectGetRectangle () 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

 RegularAnimatedSprite (const RegularAnimatedSprite &copy)
- Protected Member Functions inherited from yap::AnimatedSprite
 AnimatedSprite ()
 AnimatedSprite (const AnimatedSprite &copy)
void SetFrameSwitcher (FrameSwitcher *frameSwitcher)
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 &copy)

Private Member Functions

 DISALLOW_ASSIGN (RegularAnimatedSprite)

Static Private Attributes

static const int DEFAULT_FRAME_RATE = 10

Additional Inherited Members

- Public Types inherited from yap::AnimatedSprite
enum  PlayState { None = 0, Once = 1, Loop = 2 }
typedef collection::Array
< ISprite * >::SizeType 
IndexType

Detailed Description

Definition at line 9 of file RegularAnimatedSprite.hpp.


Constructor & Destructor Documentation

yap::RegularAnimatedSprite::RegularAnimatedSprite ( )

Definition at line 8 of file RegularAnimatedSprite.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::RegularAnimatedSprite::RegularAnimatedSprite ( const Time delay)
explicit

Definition at line 31 of file RegularAnimatedSprite.cpp.

Here is the call graph for this function:

yap::RegularAnimatedSprite::RegularAnimatedSprite ( int  frameRate)
explicit

Definition at line 37 of file RegularAnimatedSprite.cpp.

Here is the call graph for this function:

yap::RegularAnimatedSprite::~RegularAnimatedSprite ( )
virtual

Definition at line 16 of file RegularAnimatedSprite.cpp.

yap::RegularAnimatedSprite::RegularAnimatedSprite ( const RegularAnimatedSprite copy)
protected

Definition at line 20 of file RegularAnimatedSprite.cpp.


Member Function Documentation

RegularAnimatedSprite * yap::RegularAnimatedSprite::Clone ( ) const
virtual

Reimplemented from yap::ISprite.

Definition at line 26 of file RegularAnimatedSprite.cpp.

Here is the call graph for this function:

yap::RegularAnimatedSprite::DISALLOW_ASSIGN ( RegularAnimatedSprite  )
private

Member Data Documentation

const int yap::RegularAnimatedSprite::DEFAULT_FRAME_RATE = 10
staticprivate

Definition at line 31 of file RegularAnimatedSprite.hpp.


The documentation for this class was generated from the following files: