summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-05 13:33:01 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-05 13:33:01 +0100
commit25033e52443218e53104220a834bebd1cb385f3c (patch)
tree45320eadb293fd62dc73393692d5e446ed5a8f2a /core/src/ch/asynk
parentc7a491c93ea88175d4059e8f8cbe1353d5f886d7 (diff)
downloadRustAndDust-25033e52443218e53104220a834bebd1cb385f3c.zip
RustAndDust-25033e52443218e53104220a834bebd1cb385f3c.tar.gz
Unit: regroup fcts
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java
index 472bd20..cbc3842 100644
--- a/core/src/ch/asynk/rustanddust/game/Unit.java
+++ b/core/src/ch/asynk/rustanddust/game/Unit.java
@@ -200,6 +200,12 @@ public class Unit extends HeadedPawn
}
@Override
+ public boolean isHardTarget()
+ {
+ return (isA(UnitType.HARD_TARGET) || isA(UnitType.HARD_TARGET_HQ) || isA(UnitType.ARTILLERY));
+ }
+
+ @Override
public boolean isHq()
{
return isA(UnitType.HARD_TARGET_HQ);
@@ -247,12 +253,6 @@ public class Unit extends HeadedPawn
}
@Override
- public boolean isHardTarget()
- {
- return (isA(UnitType.HARD_TARGET) || isA(UnitType.HARD_TARGET_HQ) || isA(UnitType.ARTILLERY));
- }
-
- @Override
public boolean canRotate()
{
return canMove();