summaryrefslogtreecommitdiffstats
path: root/src/Weapon.java
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-19 00:02:46 +0100
committerNao Pross <naopross@thearcway.org>2018-11-19 00:02:46 +0100
commitbf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49 (patch)
treed16adf89b93b44c4a040725b54dbfe5ccf84ef14 /src/Weapon.java
parentAdd gitignore, remove binaries (diff)
downloadSubconscious-java-bf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49.tar.gz
Subconscious-java-bf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49.zip
Add TODOs for various correctionsHEADmaster
Diffstat (limited to '')
-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;