summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-10 09:55:36 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-10 09:55:36 +0100
commite6121e92ea6f0aa8b1e1643c94c30a8f6d67131c (patch)
tree277e297378fd0dc5a4f8131e06ebc6cd68f975df /core/src/ch/asynk/rustanddust/game/states
parentcb08556e89a392e12d31d1483b2ce675ad346255 (diff)
downloadRustAndDust-e6121e92ea6f0aa8b1e1643c94c30a8f6d67131c.zip
RustAndDust-e6121e92ea6f0aa8b1e1643c94c30a8f6d67131c.tar.gz
Hud: by default notify at MIDDLE_CENTER
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/states')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateBreak.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateMove.java3
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateSelect.java3
3 files changed, 5 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateBreak.java b/core/src/ch/asynk/rustanddust/game/states/StateBreak.java
index 7c41677..62dd9f5 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateBreak.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateBreak.java
@@ -16,7 +16,7 @@ public class StateBreak extends StateCommon
{
activeUnit = null;
ctrl.hud.actionButtons.show(Buttons.DONE.b);
- ctrl.hud.notify("Break Through possible", Position.MIDDLE_CENTER);
+ ctrl.hud.notify("Break Through possible");
map.unitsBreakThroughShow();
}
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java
index 559fc70..d89ee44 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java
@@ -1,5 +1,6 @@
package ch.asynk.rustanddust.game.states;
+import ch.asynk.rustanddust.ui.Position;
import ch.asynk.rustanddust.game.Hex;
import ch.asynk.rustanddust.game.Unit;
import ch.asynk.rustanddust.game.Zone;
@@ -148,7 +149,7 @@ public class StateMove extends StateCommon
map.movesShow();
map.hexSelect(hex);
activeUnit.enableOverlay(Unit.MOVE, false);
- ctrl.hud.notify(activeUnit.toString());
+ ctrl.hud.notify(activeUnit.toString(), Position.TOP_CENTER);
checkExit(activeUnit, hex);
}
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
index f7914ee..0bb9900 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
@@ -1,5 +1,6 @@
package ch.asynk.rustanddust.game.states;
+import ch.asynk.rustanddust.ui.Position;
import ch.asynk.rustanddust.game.Map;
import ch.asynk.rustanddust.game.Hex;
import ch.asynk.rustanddust.game.Unit;
@@ -98,7 +99,7 @@ public class StateSelect extends StateCommon
}
} else {
select(upHex, unit, isEnemy);
- ctrl.hud.notify(selectedUnit.toString());
+ ctrl.hud.notify(selectedUnit.toString(), Position.TOP_CENTER);
}
}