Class AsteroidScenarioScriptingEntity
- 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.AbstractScriptingEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.AsteroidScenarioScriptingEntity
-
- All Implemented Interfaces:
HasPosition2
,HasPositionAndDimension2
public class AsteroidScenarioScriptingEntity extends AbstractScriptingEntity
-
-
Field Summary
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.AbstractScriptingEntity
custom0, custom1, custom2, custom3, custom4, radius
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
LOGGER, serverRestrictedEntities, serverRestrictedEntitySurfaceBo
-
-
Constructor Summary
Constructors Constructor Description AsteroidScenarioScriptingEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSkipSceneAreas()
void
localCopy(AbstractEntity other)
Local copy of transient fieldsvoid
localInit(AbstractEntityDef entityDef)
Local initialization of transient fieldsvoid
onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
Server side: Callback after a message has been received for this entity.void
onServerTurnPass0(GameSession gameSession)
Server side: Executes code on every server turn, main pass 1 of 2.void
setSkipSceneAreas(boolean skipSceneAreas)
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.AbstractScriptingEntity
getCustom0, getCustom1, getCustom2, getCustom3, getCustom4, getLabel, getRadius, onClientCompositeEntityRadiusEntered, onClientCompositeEntityRadiusLeft, onClientDrawEntity, onClientFrame, onClientTurnCompositeEntitiesInRadius, onServerCompositeEntityRadiusEntered, onServerCompositeEntityRadiusLeft, onServerTurnCompositeEntitiesInRadius, setCustom0, setCustom1, setCustom2, setCustom3, setCustom4, setLabel, setRadius
-
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, onClientAction, onClientActionMessage, onClientGenerateEntityDetails, onClientSelectedPointToEntity, onClientSelectedPointToNoClientEntityAction, onClientSelectedPointToWorldPos, onServerTurnPass1, onServerTurnPass2PostComposites, serverCleanupRestrictedEntities, serverPrepareRestrictedEntities, serverRestrictEntity, serverTranslateEntityPass0, serverTranslateEntityPass1, setClientActions, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
-
-
-
Method Detail
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntity
Local initialization of transient fields- Overrides:
localInit
in classAbstractScriptingEntity
-
localCopy
public void localCopy(AbstractEntity other)
Description copied from class:AbstractEntity
Local copy of transient fields- Overrides:
localCopy
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 classAbstractScriptingEntity
-
onServerActionMessage
public void onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Callback after a message has been received for this entity. Sender is either the player id of the sender on client side or null if the message was sent internally on server side- Overrides:
onServerActionMessage
in classAbstractEntity
-
onServerTurnPass0
public void onServerTurnPass0(GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Executes code on every server turn, main pass 1 of 2. Executed after composite entities pass 0- Overrides:
onServerTurnPass0
in classAbstractScriptingEntity
-
isSkipSceneAreas
public boolean isSkipSceneAreas()
-
setSkipSceneAreas
public void setSkipSceneAreas(boolean skipSceneAreas)
-
-