Package de.extio.spacecraft.shared.bo
Interface PathFindingEntitySupport
-
public interface PathFindingEntitySupport
Support methods for path finding. Already integrated in PhysicalEntity
-
-
Method Summary
-
-
-
Method Detail
-
localInit
void localInit(AbstractEntityDef entityDef)
-
update
void update(AbstractEntity other)
-
onClientFrame
void onClientFrame(boolean selected, UUID parent)
-
onClientDrawEntityActions
void onClientDrawEntityActions(PhysicalEntity entity, List<RenderingBo> renderingBo)
-
onClientSelectedPointTo
void onClientSelectedPointTo(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, PhysicalEntity entity, List<ClientEntityAction> outClientActions)
-
onClientSelectedPointToNothing
void onClientSelectedPointToNothing()
-
onClientAction
boolean onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity selectedCompositeEntity, AbstractEntity selectedEntity, PhysicalEntity entity)
-
onClientActionMessage
void onClientActionMessage(GameActionMessage message)
-
getTilesetPosition
CoordI2 getTilesetPosition(PhysicalEntity entity, PhysicalEntityDef entityDef)
-
clientHideMovePathPreview
void clientHideMovePathPreview()
-
clientGetPossibleMovePath
Path clientGetPossibleMovePath(AbstractCompositeEntity compositeEntity, CoordI2 destination, AbstractEntity entity, boolean force)
Calculates a possible path to destination- Parameters:
compositeEntity
-destination
-entity
- Entity to moveforce
- Force path calculation even if destination tile is not accessible (necessary to move to adjacent tile)- Returns:
- Pair of calculated path and boolean whether result is direct or adjacent. Null if no path was found.
-
clientPrepareMovePathPreview
boolean clientPrepareMovePathPreview(AbstractCompositeEntity compositeEntity, AbstractEntity entity, CoordI2 destination)
-
onServerActionMessage
void onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession, PhysicalEntity entity)
-
onServerTurnPass0
void onServerTurnPass0(GameSession gameSession, PhysicalEntity entity)
-
onServerTurnPass1
void onServerTurnPass1(GameSession gameSession, PhysicalEntity entity)
-
serverMove
boolean serverMove(CoordI2 coord, PhysicalEntity entity, UUID sender, GameSession gameSession)
-
serverMoveReset
void serverMoveReset(PhysicalEntity entity)
-
serverMoveEntity
boolean serverMoveEntity(GameSession gameSession, AbstractCompositeEntity parent, PhysicalEntity entity, AbstractEntity ignoreEntity)
-
serverMoveOrientation
void serverMoveOrientation(CoordI2 nextNode, PhysicalEntity entity)
-
serverTranslateEntityPass1
void serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession, PhysicalEntity entity)
-
isAnimatedMovement
boolean isAnimatedMovement()
-
isPlayerCommandsMove
boolean isPlayerCommandsMove()
-
getClientMoveAnimationOffset
CoordI2 getClientMoveAnimationOffset()
-
getMoveOffset
CoordI2 getMoveOffset()
-
setMoveOffset
void setMoveOffset(CoordI2 moveOffset)
-
-