Class AbstractAiWaypointEntity
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.InfoEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.AbstractAiWaypointEntity
-
- All Implemented Interfaces:
HasPosition2,HasPositionAndDimension2
- Direct Known Subclasses:
AiControlEntity,AiWaypointEntity
public abstract class AbstractAiWaypointEntity extends InfoEntity
-
-
Field Summary
Fields Modifier and Type Field Description protected intcontrolGroupstatic ImmutableCoordI2DIAMETER_MAXprotected intindexprotected Stringlabelstatic ImmutableCoordI2RADIUS_MAX-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
LOGGER, serverRestrictedEntities, serverRestrictedEntitySurfaceBo
-
-
Constructor Summary
Constructors Constructor Description AbstractAiWaypointEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetControlGroup()intgetIndex()StringgetLabel()InfoCompositeEntitygetNeighbor(int direction_)List<InfoCompositeEntity>getNeighborWaypoints()voidlocalInit(AbstractEntityDef entityDef)Local initialization of transient fieldsvoidonClientDrawEntity(List<RenderingBo> renderingBo)Client side: Draws this entityvoidsetControlGroup(int controlGroup)voidsetIndex(int index)voidsetLabel(String label)voidupdate(AbstractEntity other)Incremental update of non-transient fields (usually transferred from server)-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.InfoEntity
isDisplay
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
create, createClientDrawTileImageBo, getDimension, getEntityDef, getEntityDefUUID, getEntityLayer, getEntityManager, getOrientation, getParentCompositeEntity, getPosition, getServerRestrictedEntities, getServerRestrictEntitiesLastUpdate, getServerRestrictEntitiesWalls, getTileset, getTilesetPosition, getUuid, isDirty, isLocalInit, localCopy, onClientAction, onClientActionMessage, onClientFrame, onClientGenerateEntityDetails, onClientSelectedPointToEntity, onClientSelectedPointToNoClientEntityAction, onClientSelectedPointToWorldPos, onServerActionMessage, onServerTurnPass0, onServerTurnPass1, onServerTurnPass2PostComposites, serverCleanupRestrictedEntities, serverPrepareRestrictedEntities, serverRestrictEntity, serverTranslateEntityPass0, serverTranslateEntityPass1, setClientActions, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
-
-
-
Field Detail
-
RADIUS_MAX
public static final ImmutableCoordI2 RADIUS_MAX
-
DIAMETER_MAX
public static final ImmutableCoordI2 DIAMETER_MAX
-
label
protected String label
-
controlGroup
protected int controlGroup
-
index
protected int index
-
-
Method Detail
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntityLocal initialization of transient fields- Overrides:
localInitin classAbstractEntity
-
update
public void update(AbstractEntity other)
Description copied from class:AbstractEntityIncremental update of non-transient fields (usually transferred from server)- Overrides:
updatein classAbstractEntity
-
onClientDrawEntity
public void onClientDrawEntity(List<RenderingBo> renderingBo)
Description copied from class:AbstractEntityClient side: Draws this entity- Overrides:
onClientDrawEntityin classInfoEntity
-
getNeighborWaypoints
public List<InfoCompositeEntity> getNeighborWaypoints()
-
getNeighbor
public InfoCompositeEntity getNeighbor(int direction_)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getControlGroup
public int getControlGroup()
-
setControlGroup
public void setControlGroup(int controlGroup)
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
-