Added comments.
This commit is contained in:
parent
e2a48470e5
commit
d1a31cac3e
1 changed files with 3 additions and 0 deletions
|
@ -19,15 +19,18 @@
|
||||||
* - pass xml filename
|
* - pass xml filename
|
||||||
*/
|
*/
|
||||||
class Weapon : public Emitter {
|
class Weapon : public Emitter {
|
||||||
|
// Public functions.
|
||||||
public:
|
public:
|
||||||
Weapon(Physical& holder, Collection& collection, b2World& world);
|
Weapon(Physical& holder, Collection& collection, b2World& world);
|
||||||
~Weapon();
|
~Weapon();
|
||||||
|
|
||||||
void fire();
|
void fire();
|
||||||
|
|
||||||
|
// Protected functions.
|
||||||
protected:
|
protected:
|
||||||
std::shared_ptr<Particle> createParticle();
|
std::shared_ptr<Particle> createParticle();
|
||||||
|
|
||||||
|
// Private variables.
|
||||||
private:
|
private:
|
||||||
Physical& mHolder;
|
Physical& mHolder;
|
||||||
std::shared_ptr<sf::Texture> mBulletTexture;
|
std::shared_ptr<sf::Texture> mBulletTexture;
|
||||||
|
|
Reference in a new issue