Class for the bomb potion.
More...
#include <BombPotion.h>
|
|
bool | activated |
| |
|
bool | isRight |
| |
|
int | strength |
| |
|
double | vx |
| |
|
double | vy |
| |
|
int | distance |
| |
| 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...
|
| |
Class for the bomb potion.
- Todo:
- Refactor so its a DynamicEntity.
| void BombPotion::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 BombPotion::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/BombPotion.h
- /home/caio/Git/Dauphine/src/BombPotion.cpp