|
Zappy GUI
C++ graphic client: renderer, camera, network
|
Base class for behaviors that produce visual drawables: sphere particles and line segments. IBehavior stays a pure interface; ADrawableBehavior adds particle and line storage. More...
#include <ADrawableBehavior.hpp>
Inheritance diagram for ADrawableBehavior:
Collaboration diagram for ADrawableBehavior:Public Member Functions | |
| const std::vector< Particle > & | getParticles () const |
| const std::vector< LineSegment > & | getLines () const |
Public Member Functions inherited from IBehavior | |
| 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. | |
Protected Attributes | |
| std::vector< Particle > | _particles |
| std::vector< LineSegment > | _lines |
Base class for behaviors that produce visual drawables: sphere particles and line segments. IBehavior stays a pure interface; ADrawableBehavior adds particle and line storage.
Definition at line 12 of file ADrawableBehavior.hpp.
|
inline |
Definition at line 15 of file ADrawableBehavior.hpp.
References _lines.
|
inline |
Definition at line 14 of file ADrawableBehavior.hpp.
References _particles.
|
mutableprotected |
Definition at line 19 of file ADrawableBehavior.hpp.
Referenced by BroadcastBehavior::BroadcastBehavior(), getLines(), BroadcastBehavior::isDone(), and BroadcastBehavior::update().
|
mutableprotected |
Definition at line 18 of file ADrawableBehavior.hpp.
Referenced by DeathBehavior::_spawnParticles(), ForkBehavior::_spawnParticles(), IncantationBehavior::_spawnParticles(), LevelUpBehavior::_spawnParticles(), IncantationBehavior::_updateParticles(), BroadcastBehavior::BroadcastBehavior(), getParticles(), BroadcastBehavior::isDone(), IncantationBehavior::isDone(), LevelUpBehavior::isDone(), BroadcastBehavior::update(), DeathBehavior::update(), ForkBehavior::update(), IncantationBehavior::update(), and LevelUpBehavior::update().