Class ImageSurfaceEntity
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.ImageSurfaceEntity
-
- All Implemented Interfaces:
HasPosition2
,HasPositionAndDimension2
public class ImageSurfaceEntity extends PhysicalEntity
-
-
Field Summary
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
clientEntityActionQueue, clientPoseAnimation, clientPoseTilesetPosition, enabled, entityAction, entityActionPending, entityActionPendingTurn, entityActionPlayer, entityActionTarget, entityActionTargetCoord, health, loggedInEntity, onDamageDestroyImmediately, onDamageSplit, onDamageSplitThreshold, pathFindingEntitySupport
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
LOGGER, serverRestrictedEntities, serverRestrictedEntitySurfaceBo
-
-
Constructor Summary
Constructors Constructor Description ImageSurfaceEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(UUID uuid, AbstractEntityDef entityDef, int entityDefIdx, UUID parentCompositeEntity)
Central initialization of non-transient fields (usually on server side).int
getTileset()
String
getTilesetModName()
String
getTilesetName()
CoordI2
getTilesetPosition()
boolean
isDefaultImage()
boolean
isDestructible()
void
localInit(AbstractEntityDef entityDef)
Local initialization of transient fieldsvoid
setDestructible(boolean destructible)
void
setHealth(double health)
Sets the health of this entity.void
setTilesetModName(String tilesetModName)
void
setTilesetName(String tilesetName)
void
setTilesetPosition(CoordI2 tilesetPosition)
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.PhysicalEntity
enableEntity, getEntityAction, getEntityActionPending, getEntityActionTarget, getEntityActionTargetCoord, getHealth, getLoggedInEntity, getOnDamageSplitThreshold, getPathFindingEntitySupport, getSubTileOffset, handleEnabledState, isEnabled, isOnDamageDestroyImmediately, isOnDamageSplit, isOperational, localCopy, nextClientEntityAction, onClientAction, onClientActionMessage, onClientComplexConsoleControlEvent, onClientComplexConsoleControlEvent, onClientDamage, onClientDrawConsoleControls, onClientDrawEntity, onClientDrawEntityAction, onClientDrawEntityActions, onClientFrame, onClientGenerateEntityDetails, onClientSelectedPointToEntity, onClientSelectedPointToNoClientEntityAction, onServerActionMessage, onServerConsoleControlEvent, onServerDamage, onServerTurnPass0, onServerTurnPass1, serverAbortEntityAction, serverCalculateEmEmission, serverSetEntityAction, serverSplitOnDamage, serverTranslateEntityPass1, setClientActions, setEnabled, setLoggedInEntity, setOnDamageDestroyImmediately, setOnDamageSplit, setOnDamageSplitThreshold
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
createClientDrawTileImageBo, getDimension, getEntityDef, getEntityDefUUID, getEntityLayer, getEntityManager, getOrientation, getParentCompositeEntity, getPosition, getServerRestrictedEntities, getServerRestrictEntitiesLastUpdate, getServerRestrictEntitiesWalls, getUuid, isDirty, isLocalInit, onClientSelectedPointToWorldPos, onServerTurnPass2PostComposites, serverCleanupRestrictedEntities, serverPrepareRestrictedEntities, serverRestrictEntity, serverTranslateEntityPass0, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
-
-
-
Method Detail
-
create
public void create(UUID uuid, AbstractEntityDef entityDef, int entityDefIdx, UUID parentCompositeEntity)
Description copied from class:AbstractEntity
Central initialization of non-transient fields (usually on server side). Is only called once in the whole life cycle of an entity.- Overrides:
create
in classPhysicalEntity
-
update
public void update(AbstractEntity other)
Description copied from class:AbstractEntity
Incremental update of non-transient fields (usually transferred from server)- Overrides:
update
in classPhysicalEntity
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntity
Local initialization of transient fields- Overrides:
localInit
in classPhysicalEntity
-
getTileset
public int getTileset()
- Overrides:
getTileset
in classAbstractEntity
-
getTilesetPosition
public CoordI2 getTilesetPosition()
- Overrides:
getTilesetPosition
in classPhysicalEntity
-
setHealth
public void setHealth(double health)
Description copied from class:PhysicalEntity
Sets the health of this entity. Setting health 0.0 means the entity has been destroyed- Overrides:
setHealth
in classPhysicalEntity
-
setTilesetPosition
public void setTilesetPosition(CoordI2 tilesetPosition)
-
getTilesetModName
public String getTilesetModName()
-
setTilesetModName
public void setTilesetModName(String tilesetModName)
-
getTilesetName
public String getTilesetName()
-
setTilesetName
public void setTilesetName(String tilesetName)
-
isDestructible
public boolean isDestructible()
-
setDestructible
public void setDestructible(boolean destructible)
-
isDefaultImage
public boolean isDefaultImage()
-
-