Class MusicArea
- 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.scripting.MusicArea
-
- All Implemented Interfaces:
HasPosition2
,HasPositionAndDimension2
public class MusicArea 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 MusicArea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDisabled()
void
localInit(AbstractEntityDef entityDef)
Local initialization of transient fieldsprotected void
onClientCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity)
Client side: Called when any entity entered this.radius.protected void
onClientCompositeEntityRadiusLeft(UUID compositeEntityId)
Client side: Called when any entity left this.radius.void
onClientFrame(boolean selected)
Client side: Callback on each frame for general logicvoid
setDisabled(boolean disabled)
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.AbstractScriptingEntity
getCustom0, getCustom1, getCustom2, getCustom3, getCustom4, getLabel, getRadius, onClientDrawEntity, onClientTurnCompositeEntitiesInRadius, onServerCompositeEntityRadiusEntered, onServerCompositeEntityRadiusLeft, onServerTurnCompositeEntitiesInRadius, onServerTurnPass0, setCustom0, setCustom1, setCustom2, setCustom3, setCustom4, setLabel, setRadius, update
-
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, onClientGenerateEntityDetails, onClientSelectedPointToEntity, onClientSelectedPointToNoClientEntityAction, onClientSelectedPointToWorldPos, onServerActionMessage, 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
-
onClientCompositeEntityRadiusEntered
protected void onClientCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity)
Description copied from class:AbstractScriptingEntity
Client side: Called when any entity entered this.radius. Feature is disabled when radius is 0- Overrides:
onClientCompositeEntityRadiusEntered
in classAbstractScriptingEntity
-
onClientCompositeEntityRadiusLeft
protected void onClientCompositeEntityRadiusLeft(UUID compositeEntityId)
Description copied from class:AbstractScriptingEntity
Client side: Called when any entity left this.radius. Feature is disabled when radius is 0- Overrides:
onClientCompositeEntityRadiusLeft
in classAbstractScriptingEntity
-
onClientFrame
public void onClientFrame(boolean selected)
Description copied from class:AbstractEntity
Client side: Callback on each frame for general logic- Overrides:
onClientFrame
in classAbstractScriptingEntity
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
-