diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-07 09:33:34 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-07 09:33:34 +0200 |
commit | eec5c5a23debb4a9c232a1326a137a727ca5a56a (patch) | |
tree | a30e280676665ba05b0ea87bf698b2cc392b2dc4 /core/src/ch | |
parent | 2aa606943b53efebe1d0860e26df8ce0923c6cac (diff) | |
download | RustAndDust-eec5c5a23debb4a9c232a1326a137a727ca5a56a.zip RustAndDust-eec5c5a23debb4a9c232a1326a137a727ca5a56a.tar.gz |
Orientation: remove useless 'Orientation.'
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Orientation.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Orientation.java b/core/src/ch/asynk/tankontank/engine/Orientation.java index 36cb500..580c4d2 100644 --- a/core/src/ch/asynk/tankontank/engine/Orientation.java +++ b/core/src/ch/asynk/tankontank/engine/Orientation.java @@ -86,16 +86,16 @@ public enum Orientation int dy = row1 - row0; if (dy == 0) { - if (dx == 0) return Orientation.KEEP; - if (dx > 0) return Orientation.NORTH; - return Orientation.SOUTH; + if (dx == 0) return KEEP; + if (dx > 0) return NORTH; + return SOUTH; } if (dy > 0) { - if (dx > 0) return Orientation.NORTH_WEST; - return Orientation.SOUTH_WEST; + if (dx > 0) return NORTH_WEST; + return SOUTH_WEST; } else { - if (dx < 0) return Orientation.SOUTH_EAST; - return Orientation.NORTH_EAST; + if (dx < 0) return SOUTH_EAST; + return NORTH_EAST; } } } |