Class BoundingModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.Model
-
- com.runemate.game.api.hybrid.local.hud.BoundingModel
-
- All Implemented Interfaces:
Animable
,Interactable
,Locatable
,Modeled
,Renderable
,Rotatable
,LocatableEntity
,Validatable
public final class BoundingModel extends Model
A 3d cube-shaped model that can be used for accurate backup models.
-
-
Field Summary
Fields Modifier and Type Field Description static com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]>
HUMANOID
-
Fields inherited from class com.runemate.game.api.hybrid.local.hud.Model
DEFAULT_HEIGHT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description BoundingModel(LocatableEntity entity, int[] frontBottomLeft, int[] backTopRight)
BoundingModel(LocatableEntity entity, int heightOffset, int[] frontBottomLeft, int[] backTopRight)
BoundingModel(LocatableEntity entity, com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
BoundingModel
getBoundingModel()
Gets the BoundingModel of this model.java.util.Set<java.awt.Color>
getDefaultColors()
Gets a list of colors that are used by default on the models polygons.int
getHeight()
com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]>
getSourceValues()
boolean
hasDynamicBounds()
int
hashCode()
boolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphjava.util.List<Triangle>
projectTriangles()
java.util.List<Triangle>
projectTrianglesWithin(java.awt.Shape viewport)
java.lang.String
toString()
-
Methods inherited from class com.runemate.game.api.hybrid.local.hud.Model
animate, click, contains, getAnimationId, getArea, getHighPrecisionOrientation, getHighPrecisionPosition, getInteractionPoint, getModel, getOrientationAsAngle, getOwner, getPosition, getVisibility, interact, isFacing, isVisible, projectBoundingRectangle, projectConvexHull, render, render, setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
getInteractionPoint, hover, interact, interact, interact, interact, interact, isHovered
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.LocatableEntity
getArea, getHighPrecisionPosition, getPosition
-
-
-
-
Constructor Detail
-
BoundingModel
public BoundingModel(LocatableEntity entity, com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> values)
-
BoundingModel
public BoundingModel(LocatableEntity entity, int[] frontBottomLeft, int[] backTopRight)
-
BoundingModel
public BoundingModel(LocatableEntity entity, int heightOffset, int[] frontBottomLeft, int[] backTopRight)
-
-
Method Detail
-
getSourceValues
public com.runemate.game.api.hybrid.util.collections.Pair<int[],int[]> getSourceValues()
-
hasDynamicBounds
public boolean hasDynamicBounds()
-
isValid
public boolean isValid()
Description copied from interface:Validatable
Verifies whether this entity is valid and still exists, typically on the world-graph- Returns:
- true if it's still available, otherwise false
-
projectTriangles
public java.util.List<Triangle> projectTriangles()
- Specified by:
projectTriangles
in classModel
-
projectTrianglesWithin
public java.util.List<Triangle> projectTrianglesWithin(java.awt.Shape viewport)
- Specified by:
projectTrianglesWithin
in classModel
-
getBoundingModel
public BoundingModel getBoundingModel()
Description copied from class:Model
Gets the BoundingModel of this model.- Specified by:
getBoundingModel
in classModel
-
getDefaultColors
public java.util.Set<java.awt.Color> getDefaultColors()
Description copied from class:Model
Gets a list of colors that are used by default on the models polygons. These are sometimes replaced before being rendered and these substitutions can be retrieved from GameObjectDefinition#getColorSubstitutions and NpcDefinition#getColorSubstitutions.- Specified by:
getDefaultColors
in classModel
-
-