Added comments.

This commit is contained in:
Felix Ableitner 2012-09-11 21:13:36 +02:00
parent e2a48470e5
commit d1a31cac3e

View file

@ -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;