Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
IBehavior Class Referenceabstract

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IBehavior()

virtual IBehavior::~IBehavior ( )
virtualdefault

Member Function Documentation

◆ getDuration()

virtual float IBehavior::getDuration ( ) const
pure virtual

Total duration of this behavior in seconds.

Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.

◆ isDone()

virtual bool IBehavior::isDone ( ) const
pure virtual

Returns true when the behavior has completed and can be removed.

Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.

◆ minDuration()

virtual float IBehavior::minDuration ( ) const
pure virtual

Minimum duration below which this behavior is skipped entirely.

Implemented in BroadcastBehavior, DeathBehavior, ForkBehavior, IncantationBehavior, LevelUpBehavior, MoveBehavior, and TurnBehavior.

◆ update()

virtual void IBehavior::update ( float  dt)
pure virtual

The documentation for this class was generated from the following file: