this class inhertis from the IStrategy class and is represents a celebration decorator where the entity will celebrate according to it.
More...
#include <SpinDecorator.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.
◆ SpinDecorator()
SpinDecorator::SpinDecorator |
( |
IStrategy * |
strategy, |
|
|
double |
time = 4 , |
|
|
double |
spinSpeed = 1 |
|
) |
| |
Construct a new Spin Decorator object.
- Parameters
-
[in] | strategy | the strategy to decorate onto |
[in] | time | how long to celebrate |
[in] | spinSpeed | multiplier for how fast to spin |
◆ celebrate()
void SpinDecorator::celebrate |
( |
IEntity * |
entity, |
|
|
double |
dt |
|
) |
| |
|
virtual |
Move the entity with the spin behavior for 4 seconds.
- Parameters
-
entity | Entity to move |
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/SpinDecorator.h