summaryrefslogtreecommitdiff
path: root/Projectile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Projectile.cpp')
-rw-r--r--Projectile.cpp22
1 files changed, 22 insertions, 0 deletions
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 <iostream>
+#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;
+}