Fix HintIconMessage.Type

This commit is contained in:
Major-
2016-02-12 16:31:26 +00:00
parent 9a920d95ee
commit 0f32ec92c4
2 changed files with 17 additions and 18 deletions
@@ -25,24 +25,24 @@ public abstract class HintIconMessage extends Message {
CENTER(2), CENTER(2),
/** /**
* A HintIcon that hovers north over a Position. * A HintIcon that hovers west over a Position.
*/ */
NORTH(3), WEST(3),
/**
* A HintIcon that hovers south over a Position.
*/
SOUTH(4),
/** /**
* A HintIcon that hovers east over a Position. * A HintIcon that hovers east over a Position.
*/ */
EAST(5), EAST(4),
/** /**
* A HintIcon that hovers west over a Position. * A HintIcon that hovers south over a Position.
*/ */
WEST(6), SOUTH(5),
/**
* A HintIcon that hovers north over a Position.
*/
NORTH(6),
/** /**
* A HintIcon that hovers over a Player. * A HintIcon that hovers over a Player.
@@ -1,8 +1,7 @@
package org.apollo.game.message.impl; package org.apollo.game.message.impl;
import org.apollo.game.model.Position;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import org.apollo.game.model.Position;
/** /**
* A {@link HintIconMessage} which displays a hint over a Position. * A {@link HintIconMessage} which displays a hint over a Position.
@@ -22,7 +21,7 @@ public final class PositionHintIconMessage extends HintIconMessage {
*/ */
private static Type testType(Type type) { private static Type testType(Type type) {
Preconditions.checkArgument(type != Type.NPC && type != Type.PLAYER, Preconditions.checkArgument(type != Type.NPC && type != Type.PLAYER,
"Hint icons over a Position may not have a type of Player or Npc."); "Hint icons over a Position may not have a type of Player or Npc.");
return type; return type;
} }