Class GameObject

All Implemented Interfaces:
Identifiable, Locatable, Verified
Direct Known Subclasses:
BoundaryObject, FloorDecoration, SceneObject, WallObject

public abstract class GameObject extends Entity
  • Constructor Details

    • GameObject

      protected GameObject(Object reference)
  • Method Details

    • getTile

      public Tile getTile()
      Specified by:
      getTile in interface Locatable
      Overrides:
      getTile in class Entity
    • setTile

      public void setTile(Tile t)
    • getSurrounding

      public List<Tile> getSurrounding()
    • getInteractableFrom

      public List<Tile> getInteractableFrom()
    • getObjectTiles

      public List<Tile> getObjectTiles()
    • getIndex

      public abstract long getIndex()
    • getActions

      public String[] getActions()
      Specified by:
      getActions in class Entity
    • getObjectModelTypes

      public int[] getObjectModelTypes()
    • getId

      public int getId()
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • getLocalX

      public int getLocalX()
    • getLocalY

      public int getLocalY()
    • getPlane

      public abstract int getPlane()
    • getFlags

      public abstract int getFlags()
    • getRealID

      @Deprecated public int getRealID()
      Deprecated.
    • getRealId

      public int getRealId()
    • getHeight

      public int getHeight()
    • getRenderableHeight

      public int getRenderableHeight()
      Specified by:
      getRenderableHeight in class Entity
    • getWidth

      public int getWidth()
    • distance

      public double distance()
      Overrides:
      distance in class Entity
    • distance

      public double distance(Entity entity)
      Overrides:
      distance in class Entity
    • distance

      public double distance(Tile tile)
      Specified by:
      distance in interface Locatable
      Overrides:
      distance in class Entity
    • walkingDistance

      public double walkingDistance(Tile tile)
      Specified by:
      walkingDistance in interface Locatable
      Overrides:
      walkingDistance in class Entity
    • tileDistance

      public int tileDistance(Tile tile)
    • getName

      public String getName()
      Specified by:
      getName in interface Identifiable
      Specified by:
      getName in class Entity
    • getOrientation

      public abstract int getOrientation()
    • getTileReference

      public TileReference getTileReference()
      Specified by:
      getTileReference in interface Locatable
      Overrides:
      getTileReference in class Entity
    • hasAction

      public boolean hasAction(String... actions)
      Specified by:
      hasAction in class Entity
    • getModel

      public Model getModel()
      Overrides:
      getModel in class Entity
    • getModelColors

      public short[] getModelColors()
    • getModifiedModelColors

      public short[] getModifiedModelColors()
    • exists

      public boolean exists()
      Specified by:
      exists in interface Verified
      Overrides:
      exists in class Entity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • canReach

      public boolean canReach(Tile tile)
    • getAdjustToTerrain

      public int getAdjustToTerrain()
    • getAlternativeIDs

      @Deprecated public int[] getAlternativeIDs()
      Deprecated.
    • getAlternativeIds

      public int[] getAlternativeIds()
    • getAnimationID

      @Deprecated public int getAnimationID()
      Deprecated.
    • getAnimationId

      public int getAnimationId()
    • getBrightness

      public int getBrightness()
    • getReTextureToFind

      public short[] getReTextureToFind()
    • getReTextureToReplace

      public short[] getReTextureToReplace()
    • isOccludes

      public boolean isOccludes()
    • isImpenetrableSolid

      public boolean isImpenetrableSolid()
    • getContrast

      public int getContrast()
    • getWallOrDoor

      public int getWallOrDoor()
    • getInteractType

      public int getInteractType()
    • getMapSceneID

      @Deprecated public int getMapSceneID()
      Deprecated.
    • getMapSceneId

      public int getMapSceneId()
    • getMiniMapIcon

      public int getMiniMapIcon()
    • getModelSizeZ

      public int getModelSizeZ()
    • getModelSizeX

      public int getModelSizeX()
    • getModelSizeY

      public int getModelSizeY()
    • getOffsetZ

      public int getOffsetZ()
    • getOffsetX

      public int getOffsetX()
    • getOffsetY

      public int getOffsetY()
    • getVarpID

      @Deprecated public int getVarpID()
      Deprecated.
    • getVarpId

      public int getVarpId()
    • getVarbitID

      @Deprecated public int getVarbitID()
      Deprecated.
    • getVarbitId

      public int getVarbitId()
    • hasChildDefinitions

      public boolean hasChildDefinitions()
    • isNonFlatShading

      public boolean isNonFlatShading()
    • isBlocksProjectiles

      public boolean isBlocksProjectiles()
    • isCastsShadows

      public boolean isCastsShadows()
    • getWallThickness

      public int getWallThickness()
    • getParams

      public Map<Integer,Object> getParams()
    • getBlockingMask

      @Deprecated public int getBlockingMask()
      Deprecated.
    • isObstructsGround

      public boolean isObstructsGround()
    • getSupportsItems

      public int getSupportsItems()
    • getMapAreaId

      public int getMapAreaId()
    • isRandomizeAnimationStart

      public boolean isRandomizeAnimationStart()
    • getCurrentOrientation

      public int getCurrentOrientation()
    • getAnimationObjectId

      public int getAnimationObjectId()
    • getWorldViewId

      public int getWorldViewId()
      Specified by:
      getWorldViewId in class Entity