From 0f32ec92c427c4fcbc7ffaaf74df9da670252372 Mon Sep 17 00:00:00 2001 From: Major- Date: Fri, 12 Feb 2016 16:31:26 +0000 Subject: [PATCH] Fix HintIconMessage.Type --- .../game/message/impl/HintIconMessage.java | 20 +++++++++---------- .../message/impl/PositionHintIconMessage.java | 15 +++++++------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/game/src/main/org/apollo/game/message/impl/HintIconMessage.java b/game/src/main/org/apollo/game/message/impl/HintIconMessage.java index 6c71c4fc..a6611262 100644 --- a/game/src/main/org/apollo/game/message/impl/HintIconMessage.java +++ b/game/src/main/org/apollo/game/message/impl/HintIconMessage.java @@ -25,24 +25,24 @@ public abstract class HintIconMessage extends Message { CENTER(2), /** - * A HintIcon that hovers north over a Position. + * A HintIcon that hovers west over a Position. */ - NORTH(3), - - /** - * A HintIcon that hovers south over a Position. - */ - SOUTH(4), + WEST(3), /** * 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. diff --git a/game/src/main/org/apollo/game/message/impl/PositionHintIconMessage.java b/game/src/main/org/apollo/game/message/impl/PositionHintIconMessage.java index 428f6806..763aaec6 100644 --- a/game/src/main/org/apollo/game/message/impl/PositionHintIconMessage.java +++ b/game/src/main/org/apollo/game/message/impl/PositionHintIconMessage.java @@ -1,8 +1,7 @@ package org.apollo.game.message.impl; -import org.apollo.game.model.Position; - import com.google.common.base.Preconditions; +import org.apollo.game.model.Position; /** * A {@link HintIconMessage} which displays a hint over a Position. @@ -16,20 +15,20 @@ public final class PositionHintIconMessage extends HintIconMessage { /** * Tests if the specified Type if valid for a Position HintIcon. - * + * * @param type The Type to test. * @return The Type if it was valid. */ private static Type testType(Type type) { 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; } /** * Creates a new {@link PositionHintIconMessage} which resets the current * HintIcon. - * + * * @return The new {@link PositionHintIconMessage}, never {@code null}. */ public static PositionHintIconMessage reset() { @@ -48,7 +47,7 @@ public final class PositionHintIconMessage extends HintIconMessage { /** * Constructs a new {@link PositionHintIconMessage}. - * + * * @param type The Type of the HintIcon. * @param position The Position of the hint icon. * @param height The display height of the hint icon. @@ -61,7 +60,7 @@ public final class PositionHintIconMessage extends HintIconMessage { /** * Gets the Position of the HintIcon. - * + * * @return The Position of the HintIcon. */ public Position getPosition() { @@ -70,7 +69,7 @@ public final class PositionHintIconMessage extends HintIconMessage { /** * Gets the display height of the HintIcon. - * + * * @return The display height of the HintIcon. */ public int getHeight() {