Package org.rspeer.game.adapter.scene
Class SceneObject
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<P>
-
- org.rspeer.game.adapter.scene.Entity<RSSceneObject>
-
- org.rspeer.game.adapter.scene.SceneObject
-
- All Implemented Interfaces:
Actionable
,Defined<RSObjectDefinition,ObjectDefinition>
,Identifiable
,Interactable
,Nameable
,SceneNode
public class SceneObject extends Entity<RSSceneObject> implements Nameable, Identifiable, Defined<RSObjectDefinition,ObjectDefinition>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Actionable
Actionable.Query<Q extends Actionable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Identifiable
Identifiable.Query<Q extends Identifiable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Nameable
Nameable.Query<Q extends Nameable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.SceneNode
SceneNode.Query<Q extends SceneNode.Query<Q>>
-
-
Constructor Summary
Constructors Constructor Description SceneObject(RSSceneObject provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectAction
actionOf(String action)
List<String>
getActions()
int
getAnimationId()
ObjectDefinition
getDefinition()
int
getEntityPositionHeight()
int
getEntityPositionWidth()
int
getId()
String
getName()
long
getPackedId()
Position
getPosition()
String[]
getRawActions()
boolean
isAnimating()
-
Methods inherited from class org.rspeer.game.adapter.scene.Entity
getHeight, getModel, getModelPosition
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction
-
Methods inherited from interface org.rspeer.game.adapter.type.Interactable
actionOf, interact, interact, interact, interact, interact
-
Methods inherited from interface org.rspeer.game.adapter.type.SceneNode
distance, distance, distance, distance, getArea, getFloorLevel, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Constructor Detail
-
SceneObject
public SceneObject(RSSceneObject provider)
-
-
Method Detail
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in interfaceSceneNode
- Specified by:
getPosition
in classEntity<RSSceneObject>
-
getDefinition
public ObjectDefinition getDefinition()
- Specified by:
getDefinition
in interfaceDefined<RSObjectDefinition,ObjectDefinition>
-
getId
public int getId()
- Specified by:
getId
in interfaceIdentifiable
-
getPackedId
public long getPackedId()
-
getEntityPositionWidth
public int getEntityPositionWidth()
- Specified by:
getEntityPositionWidth
in interfaceSceneNode
-
getEntityPositionHeight
public int getEntityPositionHeight()
- Specified by:
getEntityPositionHeight
in interfaceSceneNode
-
actionOf
public ObjectAction actionOf(String action)
- Specified by:
actionOf
in interfaceInteractable
-
getRawActions
public String[] getRawActions()
- Specified by:
getRawActions
in interfaceActionable
-
getActions
public List<String> getActions()
- Specified by:
getActions
in interfaceActionable
-
isAnimating
public boolean isAnimating()
-
getAnimationId
public int getAnimationId()
-
-