|
Zappy GUI
C++ graphic client: renderer, camera, network
|
Interface for entity visual behaviors (movement, rotation, animations, etc.). Behaviors are ticked every frame and removed when done. More...
#include <IBehavior.hpp>
Inheritance diagram for IBehavior:
Collaboration diagram for IBehavior:Public Member Functions | |
| virtual | ~IBehavior ()=default |
| virtual void | update (float dt)=0 |
| virtual bool | isDone () const =0 |
| Returns true when the behavior has completed and can be removed. | |
| virtual float | getDuration () const =0 |
| Total duration of this behavior in seconds. | |
| virtual float | minDuration () const =0 |
| Minimum duration below which this behavior is skipped entirely. | |
Interface for entity visual behaviors (movement, rotation, animations, etc.). Behaviors are ticked every frame and removed when done.
Definition at line 7 of file IBehavior.hpp.
|
virtualdefault |
|
pure virtual |
Total duration of this behavior in seconds.
Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.
|
pure virtual |
Returns true when the behavior has completed and can be removed.
Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.
|
pure virtual |
Minimum duration below which this behavior is skipped entirely.
Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.
|
pure virtual |
Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.