FYP  1.0.0
Final Year Project -- Alexander Meuer
BloodSystem Class Reference
Inheritance diagram for BloodSystem:
Inheritance graph
Collaboration diagram for BloodSystem:
Collaboration graph

Public Member Functions

 BloodSystem (sf::Texture &texture, std::function< void(Drawable const &)> underlayDrawCallback)
 
void addSpurt (sf::Vector2f const &position, sf::Color const &color=sf::Color::Red)
 
void addSpurt (sf::Vector2f const &position, sf::Vector2f const &direction, sf::Color const &color=sf::Color::Red, float speed=40.f, float deflectionAngle=30.f, float minTtl=0.8f, float maxTtl=1.2f)
 
void update (sf::Time const &time)
 

Private Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
 
void persistParticle (thor::Particle const &particle)
 

Private Attributes

thor::ParticleSystem mSpurtSystem
 
std::function< void(Drawable const &)> mPersistDraw
 
sf::Sprite mPersistantParticle
 

Static Private Attributes

static const thor::Distribution< sf::Vector2f > mRandomDirection
 

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