From c12fcf8e7663c20e2c2c0696fb35a7059b83127a Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Tue, 8 Mar 2011 15:14:57 +0000 Subject: Implement weapons --- Projectile.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Projectile.cpp (limited to 'Projectile.cpp') diff --git a/Projectile.cpp b/Projectile.cpp new file mode 100644 index 0000000..38c3394 --- /dev/null +++ b/Projectile.cpp @@ -0,0 +1,22 @@ +#include +#include "Projectile.h" + +Projectile::Projectile() { + setImage("projectiles.png"); + setClip(0, 0, 0, 20, 20); + area = 1; + isVisible = false; + active = false; +} + +int Projectile::getArea() { + return area; +} + +bool Projectile::isActive() { + return active; +} + +void Projectile::setActive(bool a) { + active = a; +} -- cgit v1.2.3