CSCI3081W Drone Delivery System
JumpDecorator.h
1 #ifndef JUMP_DECORATOR_H_
2 #define JUMP_DECORATOR_H_
3 
4 #include "ICelebrationDecorator.h"
5 
12  public:
20  JumpDecorator(IStrategy* strategy, double time = 4, double jumpHeight = 10);
21 
28  void celebrate(IEntity* entity, double dt);
29 
30  private:
31  double jumpHeight = 10;
32  bool up = true;
33  double h = 0;
34 };
35 
36 #endif // JUMP_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: JumpDecorator.h:11
JumpDecorator(IStrategy *strategy, double time=4, double jumpHeight=10)
Construct a new Jump Decorator object.
void celebrate(IEntity *entity, double dt)
Make the entity celebrate with the jump behavior.