Interface GameObject

  • All Superinterfaces:
    TileObject

    public interface GameObject
    extends TileObject
    Represents a game object.

    Most object in the RuneScape world are considered as game objects. Things such as trees, anvils, boxes, etc are all game objects.

    • Method Detail

      • sizeX

        int sizeX()
        Get the size of this object, in tiles, on the x axis
        Returns:
      • sizeY

        int sizeY()
        Get the size of this object, in tiles, on the y axis
        Returns:
      • getSceneMinLocation

        Point getSceneMinLocation()
        Gets the minimum x and y scene coordinate pair for this game object.
        Returns:
        the minimum scene coordinate
      • getSceneMaxLocation

        Point getSceneMaxLocation()
        Gets the maximum x and y scene coordinate pair for this game object.

        This value differs from getSceneMinLocation() when the size of the object is more than 1 tile.

        Returns:
        the maximum scene coordinate
      • getConvexHull

        java.awt.Shape getConvexHull()
        Gets the convex hull of the object's model.
        Returns:
        the convex hull
        See Also:
        Jarvis
      • getOrientation

        Angle getOrientation()
        Gets the orientation of the object.
        Returns:
        the orientation
      • getModelOrientation

        int getModelOrientation()
        Gets the orientation of the model in JAU. This is typically 0 for non-actors, since most object's models are oriented prior to lighting during scene loading. See getOrientation() instead for object orientation.
        See Also:
        Angle