diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-15 23:24:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-15 23:24:08 +0200 |
commit | 1ef15b4d9285c51db921a7799a0c0c509488e280 (patch) | |
tree | e19e537937218c704fa90b8538767d999af5308e /core | |
parent | f978eb824ef0ac6cc934ca19672fef44982c425c (diff) | |
download | RustAndDust-1ef15b4d9285c51db921a7799a0c0c509488e280.zip RustAndDust-1ef15b4d9285c51db921a7799a0c0c509488e280.tar.gz |
add actors/Unit
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/actors/Unit.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/actors/Unit.java b/core/src/ch/asynk/tankontank/actors/Unit.java new file mode 100644 index 0000000..e7e922a --- /dev/null +++ b/core/src/ch/asynk/tankontank/actors/Unit.java @@ -0,0 +1,36 @@ +package ch.asynk.tankontank.actors; + +import com.badlogic.gdx.graphics.g2d.TextureRegion; + +public class Unit extends Pawn +{ + public int rng; + public int def; + public int cdef; + public int mp; + public boolean hq; + public boolean ht; + + // hard tager + public Unit(boolean hq, int range, int defense, int movementPoints, TextureRegion region, HexMap map) + { + super(region, map); + this.hq = hq; + this.rng = range; + this.def = defense; + this.mp = movementPoints; + this.ht = true; + } + + // soft tager + public Unit(boolean hq, int range, int defense, int concealedDefense, int movementPoints, TextureRegion region, HexMap map) + { + super(region, map); + this.hq = hq; + this.rng = range; + this.def = defense; + this.cdef = concealedDefense; + this.mp = movementPoints; + this.ht = false; + } +} |