this class inhertis from the IStrategy class and is represents a celebration decorator where the entity will celebrate according to it.
More...
#include <JumpDecorator.h>
|
IStrategy * | strategy = nullptr |
|
float | time = 0 |
|
this class inhertis from the IStrategy class and is represents a celebration decorator where the entity will celebrate according to it.
◆ JumpDecorator()
JumpDecorator::JumpDecorator |
( |
IStrategy * |
strategy, |
|
|
double |
time = 4 , |
|
|
double |
jumpHeight = 10 |
|
) |
| |
Construct a new Jump Decorator object.
- Parameters
-
[in] | strategy | the strategy to decorate onto |
[in] | time | how long to celebrate |
[in] | jumpHeight | how far up to jump |
◆ celebrate()
void JumpDecorator::celebrate |
( |
IEntity * |
entity, |
|
|
double |
dt |
|
) |
| |
|
virtual |
Make the entity celebrate with the jump behavior.
- Parameters
-
entity | Entity to celebrate |
dt | Delta Time |
Implements ICelebrationDecorator.
The documentation for this class was generated from the following file:
- /home/spring-2025/drone_simulation/service/include/simulationmodel/strategy/decorator/JumpDecorator.h