RType
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Sprite Class Reference

#include <maintestdisplay.hpp>

Public Member Functions

 Sprite (std::string path, int animationLimit=0)
 
 ~Sprite ()=default
 
void animateSprite (int frameCount, int frameToBegin, int numberFrameToAnim, float switchTime, int top, int bottom, sf::Clock clock, sf::RenderWindow &window)
 
void drawSprite (sf::RenderWindow &window)
 
int getSizeY ()
 
int getSizeX ()
 

Public Attributes

sf::Sprite _Sprite
 
sf::Texture _Texture
 

Protected Attributes

int _AnimationLimit
 
int _NumberAnimation
 
bool _EndAnimation
 

Detailed Description

Definition at line 7 of file maintestdisplay.hpp.

Constructor & Destructor Documentation

◆ Sprite()

Sprite::Sprite ( std::string  path,
int  animationLimit = 0 
)

◆ ~Sprite()

Sprite::~Sprite ( )
default

Member Function Documentation

◆ animateSprite()

void Sprite::animateSprite ( int  frameCount,
int  frameToBegin,
int  numberFrameToAnim,
float  switchTime,
int  top,
int  bottom,
sf::Clock  clock,
sf::RenderWindow &  window 
)

◆ drawSprite()

void Sprite::drawSprite ( sf::RenderWindow &  window)
inline

Definition at line 14 of file maintestdisplay.hpp.

◆ getSizeX()

int Sprite::getSizeX ( )
inline

Definition at line 22 of file maintestdisplay.hpp.

◆ getSizeY()

int Sprite::getSizeY ( )
inline

Definition at line 18 of file maintestdisplay.hpp.

Member Data Documentation

◆ _AnimationLimit

int Sprite::_AnimationLimit
protected

Definition at line 31 of file maintestdisplay.hpp.

◆ _EndAnimation

bool Sprite::_EndAnimation
protected

Definition at line 33 of file maintestdisplay.hpp.

◆ _NumberAnimation

int Sprite::_NumberAnimation
protected

Definition at line 32 of file maintestdisplay.hpp.

◆ _Sprite

sf::Sprite Sprite::_Sprite

Definition at line 27 of file maintestdisplay.hpp.

◆ _Texture

sf::Texture Sprite::_Texture

Definition at line 28 of file maintestdisplay.hpp.


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