summaryrefslogtreecommitdiffstats
path: root/src/Weapon.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Weapon.java')
-rw-r--r--src/Weapon.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Weapon.java b/src/Weapon.java
index 36c2ab7..de6eb26 100644
--- a/src/Weapon.java
+++ b/src/Weapon.java
@@ -1,9 +1,12 @@
+// TODO: there are object such as "puch" that need infinite durability
public class Weapon {
private boolean broken;
+ // TODO: if possible make final
private int damage;
private int durability;
private int range;
private String name;
+ // TODO: add bonus / power-ups structure
public Weapon(String name, int damage, int range, int durability) {
this.name = name;
@@ -27,6 +30,7 @@ public class Weapon {
return false;
}
+ // TODO: bugfix durability-- iff damage has been done
this.durability--;
if (this.durability <= 0) {
this.broken = true;