aa6df65e97
Also created Rectangle/Circle subclasses for sprite to handle collision detection and moved collision detection from World to CollisionModel (static methods).
26 lines
472 B
C++
Executable file
26 lines
472 B
C++
Executable file
/*
|
|
* Particle.h
|
|
*
|
|
* Created on: 15.08.2012
|
|
* Author: Felix
|
|
*/
|
|
|
|
#ifndef DG_PARTICLE_H_
|
|
#define DG_PARTICLE_H_
|
|
|
|
#include "../abstract/Circle.h"
|
|
|
|
class Yaml;
|
|
|
|
/**
|
|
* Prototype for a particle.
|
|
*/
|
|
class Particle : public Circle {
|
|
public:
|
|
explicit Particle(const sf::Vector2f& position, Category category,
|
|
unsigned short mask, const Yaml& config,
|
|
const sf::Vector2f& direction);
|
|
virtual ~Particle();
|
|
};
|
|
|
|
#endif /* DG_PARTICLE_H_ */
|