diff --git a/src/org/apollo/fs/decoder/StaticObjectDecoder.java b/src/org/apollo/fs/decoder/StaticObjectDecoder.java index 863726e1..7576679e 100644 --- a/src/org/apollo/fs/decoder/StaticObjectDecoder.java +++ b/src/org/apollo/fs/decoder/StaticObjectDecoder.java @@ -9,7 +9,7 @@ import java.util.List; import org.apollo.fs.IndexedFileSystem; import org.apollo.fs.archive.Archive; import org.apollo.game.model.Position; -import org.apollo.game.model.obj.GameObject; +import org.apollo.game.model.entity.GameObject; import org.apollo.util.BufferUtil; import org.apollo.util.CompressionUtil; diff --git a/src/org/apollo/game/event/handler/impl/ObjectActionVerificationHandler.java b/src/org/apollo/game/event/handler/impl/ObjectActionVerificationHandler.java index 2aa9b833..27866f24 100644 --- a/src/org/apollo/game/event/handler/impl/ObjectActionVerificationHandler.java +++ b/src/org/apollo/game/event/handler/impl/ObjectActionVerificationHandler.java @@ -10,8 +10,8 @@ import org.apollo.game.model.World; import org.apollo.game.model.area.Sector; import org.apollo.game.model.def.ObjectDefinition; import org.apollo.game.model.entity.Entity.EntityType; +import org.apollo.game.model.entity.GameObject; import org.apollo.game.model.entity.Player; -import org.apollo.game.model.obj.GameObject; /** * A verification {@link EventHandler} for the {@link ObjectActionEvent}. diff --git a/src/org/apollo/game/model/World.java b/src/org/apollo/game/model/World.java index dd3ff8df..7fd86978 100644 --- a/src/org/apollo/game/model/World.java +++ b/src/org/apollo/game/model/World.java @@ -25,9 +25,9 @@ import org.apollo.game.model.def.ItemDefinition; import org.apollo.game.model.def.NpcDefinition; import org.apollo.game.model.def.ObjectDefinition; import org.apollo.game.model.entity.Entity; +import org.apollo.game.model.entity.GameObject; import org.apollo.game.model.entity.Npc; import org.apollo.game.model.entity.Player; -import org.apollo.game.model.obj.GameObject; import org.apollo.game.scheduling.ScheduledTask; import org.apollo.game.scheduling.Scheduler; import org.apollo.io.EquipmentDefinitionParser; diff --git a/src/org/apollo/game/model/def/ObjectDefinition.java b/src/org/apollo/game/model/def/ObjectDefinition.java index 09efe247..33fe890a 100644 --- a/src/org/apollo/game/model/def/ObjectDefinition.java +++ b/src/org/apollo/game/model/def/ObjectDefinition.java @@ -1,6 +1,6 @@ package org.apollo.game.model.def; -import org.apollo.game.model.obj.GameObject; +import org.apollo.game.model.entity.GameObject; /** * Represents a type of {@link GameObject}. diff --git a/src/org/apollo/game/model/obj/GameObject.java b/src/org/apollo/game/model/entity/GameObject.java similarity index 72% rename from src/org/apollo/game/model/obj/GameObject.java rename to src/org/apollo/game/model/entity/GameObject.java index 11ccb4e2..365c8ab8 100644 --- a/src/org/apollo/game/model/obj/GameObject.java +++ b/src/org/apollo/game/model/entity/GameObject.java @@ -1,8 +1,7 @@ -package org.apollo.game.model.obj; +package org.apollo.game.model.entity; import org.apollo.game.model.Position; import org.apollo.game.model.def.ObjectDefinition; -import org.apollo.game.model.entity.Entity; /** * Represents an object in the game world. @@ -18,9 +17,9 @@ public final class GameObject extends Entity { private final ObjectDefinition definition; /** - * The object's rotation. + * The object's orientation. */ - private final int rotation; + private final int orientation; /** * The object type. @@ -33,12 +32,12 @@ public final class GameObject extends Entity { * @param id The object's id. * @param position The position. * @param type The type code of the object. - * @param rotation The rotation of the object. + * @param orientation The orientation of the object. */ - public GameObject(int id, Position position, int type, int rotation) { + public GameObject(int id, Position position, int type, int orientation) { super(position); this.type = type; - this.rotation = rotation; + this.orientation = orientation; definition = ObjectDefinition.lookup(id); } @@ -57,7 +56,7 @@ public final class GameObject extends Entity { } /** - * Gets the id of this object. + * Gets this object's id. * * @return The id. */ @@ -66,16 +65,16 @@ public final class GameObject extends Entity { } /** - * Gets the object's rotation. + * Gets this object's orientation. * - * @return The rotation. + * @return The orientation. */ public int getRotation() { - return rotation; + return orientation; } /** - * Gets the type code of the object. + * Gets this object's type. * * @return The type. */ @@ -85,8 +84,8 @@ public final class GameObject extends Entity { @Override public String toString() { - return GameObject.class.getName() + " [id=" + definition.getId() + ", type=" + type + ", rotation=" + rotation - + "]"; + return GameObject.class.getName() + " [id=" + definition.getId() + ", type=" + type + ", rotation=" + + orientation + "]"; } } \ No newline at end of file diff --git a/src/org/apollo/game/model/obj/package-info.java b/src/org/apollo/game/model/obj/package-info.java deleted file mode 100644 index f758d422..00000000 --- a/src/org/apollo/game/model/obj/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Contains models related to in-game objects. - */ -package org.apollo.game.model.obj; \ No newline at end of file