Package org.rspeer.game.adapter.scene
Class Projectile
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<P>
-
- org.rspeer.game.adapter.scene.Entity<RSProjectile>
-
- org.rspeer.game.adapter.scene.Projectile
-
- All Implemented Interfaces:
Actionable
,Identifiable
,Interactable
,Mobile
,SceneNode
public class Projectile extends Entity<RSProjectile> implements Identifiable, Mobile
-
-
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.Mobile
Mobile.Query<Q extends Mobile.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 Projectile(RSProjectile provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuAction
actionOf(String action)
List<String>
getActions()
int
getEndCycle()
int
getId()
Position
getPosition()
String[]
getRawActions()
PathingEntity<?>
getSource()
int
getStartCycle()
Position
getStartPosition()
PathingEntity<?>
getTarget()
Position
getTargetPosition()
boolean
isFinished()
boolean
isMoving()
-
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, getEntityPositionHeight, getEntityPositionWidth, getFloorLevel, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Constructor Detail
-
Projectile
public Projectile(RSProjectile provider)
-
-
Method Detail
-
actionOf
public MenuAction 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
-
getId
public int getId()
- Specified by:
getId
in interfaceIdentifiable
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in interfaceSceneNode
- Specified by:
getPosition
in classEntity<RSProjectile>
-
getStartCycle
public int getStartCycle()
-
getEndCycle
public int getEndCycle()
-
isFinished
public boolean isFinished()
-
getTargetPosition
public Position getTargetPosition()
-
getStartPosition
public Position getStartPosition()
-
getTarget
public PathingEntity<?> getTarget()
-
getSource
public PathingEntity<?> getSource()
-
-