diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-19 00:02:46 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-19 00:02:46 +0100 |
commit | bf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49 (patch) | |
tree | d16adf89b93b44c4a040725b54dbfe5ccf84ef14 /src/Weapon.java | |
parent | Add gitignore, remove binaries (diff) | |
download | Subconscious-java-bf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49.tar.gz Subconscious-java-bf6bbd5609cd125d8b3e5a7fbe6f2cd49146af49.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Weapon.java | 4 |
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; |