summaryrefslogtreecommitdiffstats
path: root/src/Actor.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/Actor.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/Actor.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Actor.java b/src/Actor.java
index ca3995a..ef63217 100644
--- a/src/Actor.java
+++ b/src/Actor.java
@@ -1,22 +1,31 @@
public class Actor {
+ // TODO: make final
private String name;
- private boolean alive;
+ // TODO: could be replaced with `bool isAlive() { return this.hp > 0; }`
+ private boolean alive;
+ // TODO: enemy should not be binary (ex clans / groups / factions)
private boolean enemy;
private int hp;
+ // TODO: pack abilities / bonus / powers in structures
private int agility;
private int strenght;
private int defense;
+
private int x;
private int y;
+
private Weapon weapon;
private int actionsLeft;
+ // TODO: make final
private int actions = 2;
+ // TODO: make bonus / power-ups structure
public Actor(String name, int hp, boolean enemy, int agility) {
this.name = name;
this.hp = hp;
this.enemy = enemy;
this.agility = agility;
+ // TODO: puch should have infinite durability
this.weapon = new Weapon("fist", 1, 1, 10000000);
this.alive = true;
@@ -49,6 +58,7 @@ public class Actor {
this.weapon = weapon;
}
+ // TODO: could be `return this.hp > 0` and remove member
public boolean isAlive() {
return this.alive;
}