CSCI3081W Drone Delivery System
SpinDecorator.h
1 #ifndef SPIN_DECORATOR_H_
2 #define SPIN_DECORATOR_H_
3 
4 #include "ICelebrationDecorator.h"
5 
12  public:
20  SpinDecorator(IStrategy* strategy, double time = 4, double spinSpeed = 1);
21 
28  void celebrate(IEntity* entity, double dt);
29 
30  private:
31  double spinSpeed = 1;
32 };
33 
34 #endif // SPIN_DECORATOR_H_
this class inhertis from the IStrategy class and is represents a celebration decorator where the enti...
Definition: ICelebrationDecorator.h:11
Represents an entity in a physical system.
Definition: IEntity.h:22
Strategy interface.
Definition: IStrategy.h:11
this class inhertis from the IStrategy class and is represents a celebration decorator where the enti...
Definition: SpinDecorator.h:11
void celebrate(IEntity *entity, double dt)
Move the entity with the spin behavior for 4 seconds.
SpinDecorator(IStrategy *strategy, double time=4, double spinSpeed=1)
Construct a new Spin Decorator object.