diff --git a/source/effects/Bullet.cpp b/source/effects/Bullet.cpp index 6cdb4f8..fb96df2 100755 --- a/source/effects/Bullet.cpp +++ b/source/effects/Bullet.cpp @@ -10,6 +10,7 @@ #include "../abstract/Actor.h" #include "../util/Log.h" +const Vector2i Bullet::SIZE = Vector2i(20, 20); const float Bullet::SPEED = 500.0f; /** @@ -21,7 +22,7 @@ const float Bullet::SPEED = 500.0f; */ Bullet::Bullet(const Vector2f& position, b2World& world, const std::shared_ptr& texture, Physical& shooter, float direction, int damage) : - Particle(texture, PhysicalData(position, Vector2i(20, 20), world, CATEGORY_PARTICLE, + Particle(texture, PhysicalData(position, SIZE, world, CATEGORY_PARTICLE, CATEGORY_PARTICLE, true, true)), mShooter(shooter), mDamage(damage) { diff --git a/source/effects/Bullet.h b/source/effects/Bullet.h index debbef8..06adc19 100755 --- a/source/effects/Bullet.h +++ b/source/effects/Bullet.h @@ -22,6 +22,9 @@ public: void onCollide(Physical& other, uint16 category); bool doesCollide(Physical& other); +// Public variables. +public: + static const Vector2i SIZE; // Private variables. private: static const float SPEED;