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

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
 

Detailed Description

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.

Member Function Documentation

◆ getLines()

const std::vector< LineSegment > & ADrawableBehavior::getLines ( ) const
inline

Definition at line 15 of file ADrawableBehavior.hpp.

References _lines.

◆ getParticles()

const std::vector< Particle > & ADrawableBehavior::getParticles ( ) const
inline

Definition at line 14 of file ADrawableBehavior.hpp.

References _particles.

Member Data Documentation

◆ _lines

std::vector<LineSegment> ADrawableBehavior::_lines
mutableprotected

◆ _particles


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