Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
IBehavior.hpp
Go to the documentation of this file.
1#pragma once
2
7class IBehavior {
8 public:
9 virtual ~IBehavior() = default;
10
11 virtual void update(float dt) = 0;
12
14 virtual bool isDone() const = 0;
15
17 virtual float getDuration() const = 0;
18
20 virtual float minDuration() const = 0;
21};
Interface for entity visual behaviors (movement, rotation, animations, etc.). Behaviors are ticked ev...
Definition IBehavior.hpp:7
virtual float minDuration() const =0
Minimum duration below which this behavior is skipped entirely.
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 ~IBehavior()=default