Class AbstractPortalCompositeEntity
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractCompositeEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.composite.ImageSurfaceCompositeEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.composite.AbstractPortalCompositeEntity
-
- All Implemented Interfaces:
HasPosition2
,HasPositionAndDimension2
,SpatialIndex2Capable
public abstract class AbstractPortalCompositeEntity extends ImageSurfaceCompositeEntity
A portal in the portal network. Players can jump through portals to move to other locations in space instantaneously (worm hole like).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.extio.spacecraft.shared.model.entity.AbstractCompositeEntity
AbstractCompositeEntity.CollisionCalculationResult, AbstractCompositeEntity.DefaultDamageWaveDamageHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected String
fixedDestination
protected boolean
hideInNetwork
protected boolean
portalDisabled
protected String
portalName
protected boolean
portalRift
protected boolean
portalRiftUsed
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.composite.ImageSurfaceCompositeEntity
serverDampenVelocityFactor, serverSurfaceBuilt
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractCompositeEntity
accelerationVector, DAMAGE_COLORS, DAMAGE_CONSUMER_BOTH, DAMAGE_CONSUMER_ENTITY, DAMAGE_CONSUMER_SHIELD, DAMAGEWAVE_DIRECTIONS, dimension, dirty, entityManager, fields, fresh, lastMovement, LOGGER, meshes, position, positionDirty, precisePosition, prevPosition, prevVelocityVector, ROTATE_COLLISION_COLOR, splitEntityGroups, sumMassCached, sumMassCachedTurn, uuid, velocityVector, VMAX_M_LB, VMAX_M_UB, VMAX_VEL_MAX, VMAX_VEL_MIN, VMAX_VEL_VAR
-
-
Constructor Summary
Constructors Constructor Description AbstractPortalCompositeEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(UUID uuid, CoordI2 position, CoordI2 dimension)
Called upon initial creation of this composite entity.String
getFixedDestination()
String
getPortalName()
boolean
isHideInNetwork()
boolean
isPortalDisabled()
boolean
isPortalRift()
boolean
isPortalRiftUsed()
void
setFixedDestination(String fixedDestination)
void
setHideInNetwork(boolean hideInNetwork)
void
setPortalDisabled(boolean portalDisabled)
void
setPortalName(String portalName)
void
setPortalRift(boolean rift)
void
setPortalRiftUsed(boolean portalRiftUsed)
void
update(AbstractCompositeEntity other)
Updates non-transient fields (i.e.-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.composite.ImageSurfaceCompositeEntity
damageWave, getDynamicSerializationProperties, getTilesetArea, getTilesetModName, getTilesetName, isDestructible, isEditorParametersDirty, localCopy, localInit, onServerTurnPass0, priorityCalculateCollision, serverBuildSurface, serverDampenVelocity, serverResetSurface, setDestructible, setDynamicSerializationProperties, setEditorParametersDirty, setTilesetArea, setTilesetModName, setTilesetName, sumMass
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractCompositeEntity
accelerate, calculateCollision, calculateVMax, compressDimension, excludeDynamicSerializationPropertiesPermanentStorage, getAccelerationVector, getAnimationOffset, getCompositeEntityFactoryClassName, getDimension, getDynamicSerializationPropertiesForSeparateTransfer, getEntityManager, getEntityNetworkConsolesCache, getFields, getLastEdited, getLastRotation, getLastRotationDirection, getMeshes, getPosition, getPrecisePosition, getPrevPosition, getSceneTag, getServerFieldsLastPublished, getServerLastInViewPort, getServerMeshesLastPublished, getServerScannedBy, getUuid, getVelocityVector, handleMove, handleMoveApply, includeInSpatialIndex2ResultSet, isDirty, isFresh, isInSpatialIndex2ResultSet, isLocalInit, isPositionDirty, isRemoved, isShadowed, isSplitEntityGroups, onClientActionMessage, onClientDraw, onClientFrame, onRemove, onServerActionMessage, onServerCollision, onServerTurnPass1, onServerTurnPass2, resetFieldsForPermanentStorage, resetStatic, restoreFieldsFromPermanentStorage, rotate, setAccelerationVector, setCompositeEntityFactoryClassName, setDimension, setDirty, setEntityManager, setFresh, setLastEdited, setPosition, setPositionDirty, setPrecisePosition, setPrevPosition, setSceneTag, setServerFieldsLastPublished, setServerMeshesLastPublished, setShadowed, setSplitEntityGroups, setUuid, setVelocityVector, splitEntityGroups
-
-
-
-
Method Detail
-
create
public void create(UUID uuid, CoordI2 position, CoordI2 dimension)
Description copied from class:AbstractCompositeEntity
Called upon initial creation of this composite entity. This method is not called locally (i.e. when the composite has been transferred from server to client), so only initialize non-transient fields here. See also localInit()- Overrides:
create
in classImageSurfaceCompositeEntity
-
update
public void update(AbstractCompositeEntity other)
Description copied from class:AbstractCompositeEntity
Updates non-transient fields (i.e. when receiving an entity update from server or copying a composite entity)- Overrides:
update
in classImageSurfaceCompositeEntity
-
getPortalName
public String getPortalName()
-
setPortalName
public void setPortalName(String portalName)
-
isPortalDisabled
public boolean isPortalDisabled()
-
setPortalDisabled
public void setPortalDisabled(boolean portalDisabled)
-
isPortalRift
public boolean isPortalRift()
-
setPortalRift
public void setPortalRift(boolean rift)
-
isPortalRiftUsed
public boolean isPortalRiftUsed()
-
setPortalRiftUsed
public void setPortalRiftUsed(boolean portalRiftUsed)
-
getFixedDestination
public String getFixedDestination()
-
setFixedDestination
public void setFixedDestination(String fixedDestination)
-
isHideInNetwork
public boolean isHideInNetwork()
-
setHideInNetwork
public void setHideInNetwork(boolean hideInNetwork)
-
-