diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 17:12:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 17:12:34 +0100 |
commit | 7d5d184cd43746a8b46a2deac4ecdd61065642be (patch) | |
tree | bd9fd1c9d183470984758ab430939d93ae3accf6 /core | |
parent | 14e9c0f90aa3858bbaa22cbd6639d3a35baebf5a (diff) | |
download | RustAndDust-7d5d184cd43746a8b46a2deac4ecdd61065642be.zip RustAndDust-7d5d184cd43746a8b46a2deac4ecdd61065642be.tar.gz |
Player: add unitEntry(Pawn) and revertUnitEntry(Pawn)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Player.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java index 385a3ae..fa6a923 100644 --- a/core/src/ch/asynk/tankontank/engine/Player.java +++ b/core/src/ch/asynk/tankontank/engine/Player.java @@ -65,6 +65,18 @@ public abstract class Player reinforcement.add(pawn); } + public void unitEntry(Pawn pawn) + { + reinforcement.remove(pawn); + units.add(pawn); + } + + public void revertUnitEntry(Pawn pawn) + { + units.remove(pawn); + reinforcement.add(pawn); + } + public void casualty(Pawn pawn) { units.remove(pawn); |