Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Public Member Functions | Private Attributes | List of all members
Text Class Reference

#include <Text.h>

Public Member Functions

 Text (const double x_, const double y_, const std::string &path_, const int size_, const std::string &text_)
 
virtual void update (const double dt_)
 Updates the text. More...
 
virtual void render (const double cameraX_, const double cameraY_)
 Renders the text. More...
 
- Public Member Functions inherited from Entity
virtual ~Entity ()
 The destructor.
 
unsigned int getWidth ()
 
unsigned int getHeight ()
 
SDL_Rect & getAnimationClip ()
 

Private Attributes

TTF_Font * font
 

Additional Inherited Members

- Public Attributes inherited from Entity
double x
 The position in the x axis. More...
 
double y
 The position in the y axis. More...
 
bool isRight
 The direction in the x axis. More...
 
- Protected Member Functions inherited from Entity
 Entity (const double x_, const double y_, Sprite *const sprite_)
 The constructor. More...
 
- Protected Attributes inherited from Entity
Spritesprite
 The Sprite attributed to the entity. More...
 
unsigned int width
 The entitys width, from its sprite. More...
 
unsigned int height
 The entitys height, from its sprite. More...
 
SDL_Rect animationClip
 The current clip on the spritesheet, to determine animation. More...
 
SDL_Rect boundingBox
 

Detailed Description

Todo:
Actually make this work.

Member Function Documentation

virtual void Text::render ( const double  cameraX_,
const double  cameraY_ 
)
virtual

Renders the text.

Parameters
cameraX_: The x position of the camera.
cameraY_: The y position of the camera.

Implements Entity.

virtual void Text::update ( const double  dt_)
virtual

Updates the text.

Parameters
dt_: Delta time. Time elapsed between one frame and the other.

Implements Entity.


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