Class CompositeModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.Model
-
- com.runemate.game.api.hybrid.local.hud.CompositeModel
-
- All Implemented Interfaces:
Animable
,Interactable
,Locatable
,Modeled
,Renderable
,Rotatable
,LocatableEntity
,Validatable
public class CompositeModel extends Model
A Model composed on other models.
-
-
Field Summary
-
Fields inherited from class com.runemate.game.api.hybrid.local.hud.Model
DEFAULT_HEIGHT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description CompositeModel(Model... models)
CompositeModel(java.util.List<Model> models)
-
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()
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
-
-
-
-
Method Detail
-
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
-
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
-
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
-
getBoundingModel
public BoundingModel getBoundingModel()
Description copied from class:Model
Gets the BoundingModel of this model.- Specified by:
getBoundingModel
in classModel
-
hasDynamicBounds
public boolean hasDynamicBounds()
-
-