Package com.epicbot.api.shared.entity
Interface SceneObject
- All Superinterfaces:
Actionable,Clickable,GameEntity,Identifiable,Interactable,Locatable,LocatableEntity,Modeled,Nameable,Renderable,Rotatable,Validatable
An entity that represents a game object within the current scene. For example a door, wall or floor/wall decorations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe different types of scene objects. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionGets the optional cardinal direction of the object.intGets the optional second rotation of the object.intGets the objects tile height.getType()Gets the type of the object.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hoverMethods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interactMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Locatable
canReach, canReach, canReach, derive, derive, distanceTo, distanceTo, getArea, getArea, getLocation, getMapPoint, getPlane, getSceneOffset, getX, getY, isOnMap, randomize, randomize, randomize, tileDistanceTo, tileDistanceToMethods inherited from interface com.epicbot.api.shared.entity.details.Modeled
getModelHeightMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisibleMethods inherited from interface com.epicbot.api.shared.entity.details.Rotatable
getDirection, getRotation, isFacing, isFacingMeMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
Field Details
-
TYPE_GAMEOBJECT
static final int TYPE_GAMEOBJECT- See Also:
-
TYPE_FLOOR_DECORATION
static final int TYPE_FLOOR_DECORATION- See Also:
-
TYPE_BOUNDARY
static final int TYPE_BOUNDARY- See Also:
-
TYPE_WALL_DECORATION
static final int TYPE_WALL_DECORATION- See Also:
-
-
Method Details
-
getType
SceneObject.SceneObjectType getType()Gets the type of the object.- Returns:
SceneObject.SceneObjectType
-
getTileHeight
int getTileHeight()Gets the objects tile height.- Returns:
- int
-
getSecondRotation
int getSecondRotation()Gets the optional second rotation of the object.- Returns:
- rotation or -1
-
getSecondDirection
Direction getSecondDirection()Gets the optional cardinal direction of the object.- Returns:
- direction or null
- See Also:
-