#include <TextSprite.h>
Public Member Functions | |
| TextSprite (const SpriteID &id, const std::string &message, const ColourRGB &colour) | |
| void | InitFromFile (char *filename) |
| void | Draw (const unsigned int &x, const unsigned int &y, unsigned int frame=0) |
| void | Shutdown () |
| SpriteID | GetID () |
| unsigned int | GetNumFrames () |
| unsigned int | GetWidth () |
| unsigned int | GetHeight () |
| ColourRGB | GetColour () |
Protected Member Functions | |
| const bool * | GetCharacterArray (char character) |
| void | WritePixel (SDL_Surface *surface, int x, int y, const ColourRGB &colour) |
Protected Attributes | |
| unsigned int | m_numFrames |
| unsigned int | m_width |
| unsigned int | m_height |
| SDL_Surface * | m_pFrames |
| ColourRGB | m_colour |
| SpriteID | m_ID |
Definition at line 7 of file TextSprite.h.
| TextSprite::TextSprite | ( | const SpriteID & | id, | |
| const std::string & | message, | |||
| const ColourRGB & | colour | |||
| ) |
Definition at line 10 of file TextSprite.cpp.
| void Sprite::Draw | ( | const unsigned int & | x, | |
| const unsigned int & | y, | |||
| unsigned int | frame = 0 | |||
| ) | [inherited] |
Definition at line 26 of file Sprite.cpp.
| const bool * TextSprite::GetCharacterArray | ( | char | character | ) | [protected] |
Definition at line 58 of file TextSprite.cpp.
| void Sprite::InitFromFile | ( | char * | filename | ) | [inherited] |
Definition at line 21 of file Sprite.cpp.
| void Sprite::Shutdown | ( | ) | [inherited] |
Definition at line 33 of file Sprite.cpp.
| void Sprite::WritePixel | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y, | |||
| const ColourRGB & | colour | |||
| ) | [protected, inherited] |
Definition at line 39 of file Sprite.cpp.
ColourRGB Sprite::m_colour [protected, inherited] |
unsigned int Sprite::m_height [protected, inherited] |
SpriteID Sprite::m_ID [protected, inherited] |
unsigned int Sprite::m_numFrames [protected, inherited] |
SDL_Surface* Sprite::m_pFrames [protected, inherited] |
unsigned int Sprite::m_width [protected, inherited] |
1.5.9