#include <Crosshair.h>
|
|
| Crosshair (const double x_, const double y_, Sprite *const sprite_) |
| |
| virtual void | update (const double dt_) |
| | Updates the entity. More...
|
| |
| virtual void | render (const double cameraX_, const double cameraY_) |
| | Renders the entity. More...
|
| |
|
unsigned int | getWidth () |
| |
|
unsigned int | getHeight () |
| |
|
virtual | ~Entity () |
| | The destructor.
|
| |
| unsigned int | getWidth () |
| |
| unsigned int | getHeight () |
| |
| SDL_Rect & | getAnimationClip () |
| |
|
|
bool | activated |
| |
| 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...
|
| |
| void Crosshair::render |
( |
const double |
cameraX_, |
|
|
const double |
cameraY_ |
|
) |
| |
|
virtual |
Renders the entity.
Pure virtual function. Purpose is to copy the entity's texture onto the renderer.
- Note
- Usually just calls the render method from the Sprite class.
- Parameters
-
| cameraX_ | : The x position of the camera. |
| cameraY_ | : The y position of the camera. |
Implements Entity.
| void Crosshair::update |
( |
const double |
dt_) | |
|
|
virtual |
Updates the entity.
Pure virtual function. Purpose is to update whatever is necessary, relative to the entity.
- Parameters
-
| dt_ | : Delta time. Time elapsed between one frame and the other. |
Implements Entity.
The documentation for this class was generated from the following files:
- /home/caio/Git/Dauphine/include/Crosshair.h
- /home/caio/Git/Dauphine/src/Crosshair.cpp