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 int
controlGroup
static ImmutableCoordI2
DIAMETER_MAX
protected int
index
protected String
label
static ImmutableCoordI2
RADIUS_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 int
getControlGroup()
int
getIndex()
String
getLabel()
InfoCompositeEntity
getNeighbor(int direction_)
List<InfoCompositeEntity>
getNeighborWaypoints()
void
localInit(AbstractEntityDef entityDef)
Local initialization of transient fieldsvoid
onClientDrawEntity(List<RenderingBo> renderingBo)
Client side: Draws this entityvoid
setControlGroup(int controlGroup)
void
setIndex(int index)
void
setLabel(String label)
void
update(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:AbstractEntity
Local initialization of transient fields- Overrides:
localInit
in classAbstractEntity
-
update
public void update(AbstractEntity other)
Description copied from class:AbstractEntity
Incremental update of non-transient fields (usually transferred from server)- Overrides:
update
in classAbstractEntity
-
onClientDrawEntity
public void onClientDrawEntity(List<RenderingBo> renderingBo)
Description copied from class:AbstractEntity
Client side: Draws this entity- Overrides:
onClientDrawEntity
in 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)
-
-