Class AbstractWeaponEntity
- 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.StructureEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.AbstractWeaponEntity
-
- All Implemented Interfaces:
HasEntityMod<WeaponEntityMod>
,MeshConsumer
,MeshWorker
,ShipEditorEntityExecuteAware
,StorableEntity
,WeaponEntity
,HasPosition2
,HasPositionAndDimension2
public abstract class AbstractWeaponEntity extends StructureEntity implements WeaponEntity, MeshConsumer, ShipEditorEntityExecuteAware, HasEntityMod<WeaponEntityMod>
Base class for all weapon implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected int
clientDrawFireFrames
protected double
clientLastDistanceOverride
protected double
clientLastOutputPersistent
protected long
clientLastOverridesUpdated
protected boolean
clientSelected
protected boolean
clientShipEditorEntityExecuting
protected EntityModSupport<WeaponEntityMod>
entityModSupport
protected double
lastAccuracy
protected double
lastDistance
protected double
lastOutput
protected MeshConsumerSupport
meshConsumerSupport
protected CoordI2
serverLastTargetDimension
protected Class<? extends AbstractCompositeEntity>
serverLastTargetType
protected CoordI2
serverLastTargetWorldPos
protected boolean
serverShipEditorEntityExecuting
protected WeaponEntityControllerData
weaponControllerData
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.StructureEntity
displayCooldown
-
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 AbstractWeaponEntity()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
abortAttack()
protected abstract double
calculateAccuracy(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
double
calculateBaseDamage()
int
calculateCooldown()
protected double
calculateHealthFactor(PhysicalEntityDef entityDef)
double
calculateMaxDistance()
double
calculateMinDistance()
protected double
calculateRelativeVelocity(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite)
abstract boolean
canAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
protected boolean
canAttackGeneral(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
protected boolean
checkWeaponDistance(AbstractWeaponEntityDef entityDef, AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
protected void
clientFireWeaponAccuracyAreaEffect(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetCompositeEntity, CoordI2 targetEntityPos, boolean canAttack)
void
create(UUID uuid, AbstractEntityDef entityDef, int entityDefIdx, UUID parentCompositeEntity)
Central initialization of non-transient fields (usually on server side).EntityModSupport<WeaponEntityMod>
getEntityModSupport()
double
getLastAccuracy()
double
getLastDistance()
double
getLastOutput()
double
getMeshConsumerActionAmount()
double
getMeshConsumerAmount()
double
getMeshConsumerAmountGranted()
double
getMeshConsumerAmountGrantedPrev()
int
getMeshConsumerLane()
int
getMeshConsumerLanePrev()
double
getMeshConsumerOneTimeAmountGranted()
UUID
getMeshConsumerType()
int
getPassiveMeshConsumerLane()
int
getPassiveMeshConsumerLanePrev()
UUID
getPassiveMeshConsumerType()
CoordI2
getTilesetPosition()
WeaponEntityControllerData
getWeaponControllerData()
protected boolean
ignoreSelfHit(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
boolean
isControlAll()
boolean
isMeshConsumerResourceOut()
boolean
isMeshRedistributionSupported()
boolean
isServerShipEditorEntityExecuting()
void
localCopy(AbstractEntity other)
Local copy of transient fieldsvoid
localInit(AbstractEntityDef entityDef)
Local initialization of transient fieldsboolean
onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
Client side: Callback if the player selected an actionvoid
onClientActionMessage(GameActionMessage message)
Client side: Callback after a message has been received for this entityvoid
onClientDrawConsoleControls(boolean controlsActive, List<ClientConsoleControlSet> consoleControls)
Client side: Draws controls on the entity consolevoid
onClientDrawEntityAction(List<RenderingBo> renderingBo, String action, boolean pending, CoordI2 subTileOffset)
Client side: Draws a certain action the entity is executingvoid
onClientDrawEntityActions(List<RenderingBo> renderingBo)
Client side: Draws general effects that are related to actions the entity is executingvoid
onClientFrame(boolean selected)
Client side: Callback on each frame for general logicString
onClientGenerateEntityDetails()
Client side: Returns details about this entity.void
onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
Client side: Callback when this entity is selected and cursor is pointing to another entityvoid
onClientSelectedPointToNoClientEntityAction(int modifiers)
Client side: Callback when this entity is selected and onClientSelectedPointToEntity + onClientSelectedPointToWorldPos did not set any possible actionvoid
onClientShipEditorEntityExecute(boolean execute)
void
onServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)
Server side: Called when the user interacted with a control in the entity consolevoid
onServerShipEditorEntityExecute(boolean execute)
void
onServerTurnPass0(GameSession gameSession)
Server side: Executes code on every server turn, main pass 1 of 2.void
onServerTurnPass1(GameSession gameSession)
Server side: Executes code on every server turn, main pass 2 of 2.void
onServerTurnPass2PostComposites(GameSession gameSession)
Server side: Executes code on every server turn, postprocessing pass after composite entity pass 2.protected void
publishStarvedAction(GameSession gameSession, String reason)
void
requestAttack(CoordI2 worldPos)
Requests weapon to attackvoid
requestAttack(UUID targetCompositeEntityId, CoordI2 targetEntityPos)
void
serverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)
Server side: Aborts the current action the entity is executingprotected abstract void
serverAttack(GameSession gameSession, AbstractCompositeEntity composite, CoordI2 entityPos, Runnable onAttack)
double
serverCalculateEmEmission(GameSession gameSession)
Server side: Calculates the EM emission of this entityvoid
serverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)
Server side: Cleans up restricted entity surfaces.protected abstract ViewPortEffectEvent
serverGenerateWeaponFireEffectEvent(GameSession gameSession, CoordI2 targetWorldPos, UUID compositeEntityId, CoordI2 entityPos)
void
serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Prepares RestrictedEntity instances to be presented instead of this entity to a player.protected abstract void
serverProcessFinalTarget(Random rand, GameSession gameSession, AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, CoordI2 weaponWorldPos, org.apache.commons.lang3.mutable.MutableObject<AbstractCompositeEntity> finalTargetComposite, CoordI2 finalTargetPos, CoordI2 finalTargetWorldPos)
void
serverPublishUpdateAll(GameSession gameSession, UUID sender)
boolean
serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Checks whether this entity should be restricted to the player recipient, i.e.boolean
serverShipEditorEntityExecuteAutoMeshConsumption()
void
serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Postprocesses rotation of the parent composite entity.void
setControlAll(boolean all)
void
setLastAccuracy(double lastAccuracy)
void
setLastDistance(double lastDistance)
void
setLastOutput(double lastOutput)
void
setMeshConsumerActionAmount(double meshConsumerActionAmount)
void
setMeshConsumerAmount(double meshConsumerAmount)
void
setMeshConsumerAmountGranted(double amount)
void
setMeshConsumerAmountGrantedPrev(double meshConsumerAmountGrantedPrev)
void
setMeshConsumerLane(int meshConsumerLane)
void
setMeshConsumerLanePrev(int meshConsumerLanePrev)
void
setMeshConsumerOneTimeAmountGranted(double meshConsumerOneTimeAmount)
void
setMeshConsumerType(UUID meshConsumerType)
void
setPassiveMeshConsumerLane(int lane)
void
setPassiveMeshConsumerLanePrev(int lane)
void
setWeaponControllerData(WeaponEntityControllerData weaponControllerData)
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.StructureEntity
enableEntity, getCooldown, getTransformedEdges, isCooldownDisablesEntity, isOperational, onClientDrawEntity, onServerStorageExplode, setCooldown, setCooldownDisablesEntity
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
getEntityAction, getEntityActionPending, getEntityActionTarget, getEntityActionTargetCoord, getHealth, getLoggedInEntity, getOnDamageSplitThreshold, getPathFindingEntitySupport, getSubTileOffset, handleEnabledState, isEnabled, isOnDamageDestroyImmediately, isOnDamageSplit, nextClientEntityAction, onClientComplexConsoleControlEvent, onClientComplexConsoleControlEvent, onClientDamage, onServerActionMessage, onServerDamage, serverSetEntityAction, serverSplitOnDamage, setClientActions, setEnabled, setHealth, 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, getTileset, getUuid, isDirty, isLocalInit, onClientSelectedPointToWorldPos, serverTranslateEntityPass0, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.model.entity.builtin.live.StorableEntity
onServerStorageEject
-
-
-
-
Field Detail
-
meshConsumerSupport
protected MeshConsumerSupport meshConsumerSupport
-
weaponControllerData
protected WeaponEntityControllerData weaponControllerData
-
entityModSupport
protected EntityModSupport<WeaponEntityMod> entityModSupport
-
lastOutput
protected double lastOutput
-
lastDistance
protected double lastDistance
-
lastAccuracy
protected double lastAccuracy
-
clientSelected
protected transient boolean clientSelected
-
clientDrawFireFrames
protected transient int clientDrawFireFrames
-
clientLastDistanceOverride
protected transient double clientLastDistanceOverride
-
clientLastOverridesUpdated
protected transient long clientLastOverridesUpdated
-
clientLastOutputPersistent
protected transient double clientLastOutputPersistent
-
serverLastTargetDimension
protected transient CoordI2 serverLastTargetDimension
-
serverLastTargetWorldPos
protected transient CoordI2 serverLastTargetWorldPos
-
serverLastTargetType
protected transient Class<? extends AbstractCompositeEntity> serverLastTargetType
-
clientShipEditorEntityExecuting
protected transient boolean clientShipEditorEntityExecuting
-
serverShipEditorEntityExecuting
protected transient boolean serverShipEditorEntityExecuting
-
-
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 classStructureEntity
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntity
Local initialization of transient fields- Overrides:
localInit
in classStructureEntity
-
update
public void update(AbstractEntity other)
Description copied from class:AbstractEntity
Incremental update of non-transient fields (usually transferred from server)- Overrides:
update
in classStructureEntity
-
localCopy
public void localCopy(AbstractEntity other)
Description copied from class:AbstractEntity
Local copy of transient fields- Overrides:
localCopy
in classPhysicalEntity
-
onClientDrawEntityActions
public void onClientDrawEntityActions(List<RenderingBo> renderingBo)
Description copied from class:PhysicalEntity
Client side: Draws general effects that are related to actions the entity is executing- Overrides:
onClientDrawEntityActions
in classPhysicalEntity
-
onClientDrawEntityAction
public void onClientDrawEntityAction(List<RenderingBo> renderingBo, String action, boolean pending, CoordI2 subTileOffset)
Description copied from class:PhysicalEntity
Client side: Draws a certain action the entity is executing- Overrides:
onClientDrawEntityAction
in classPhysicalEntity
-
onClientSelectedPointToEntity
public void onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
Description copied from class:AbstractEntity
Client side: Callback when this entity is selected and cursor is pointing to another entity- Overrides:
onClientSelectedPointToEntity
in classPhysicalEntity
-
onClientSelectedPointToNoClientEntityAction
public void onClientSelectedPointToNoClientEntityAction(int modifiers)
Description copied from class:AbstractEntity
Client side: Callback when this entity is selected and onClientSelectedPointToEntity + onClientSelectedPointToWorldPos did not set any possible action- Overrides:
onClientSelectedPointToNoClientEntityAction
in classPhysicalEntity
-
onClientDrawConsoleControls
public void onClientDrawConsoleControls(boolean controlsActive, List<ClientConsoleControlSet> consoleControls)
Description copied from class:PhysicalEntity
Client side: Draws controls on the entity console- Overrides:
onClientDrawConsoleControls
in classPhysicalEntity
-
onClientAction
public boolean onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
Description copied from class:AbstractEntity
Client side: Callback if the player selected an action- Overrides:
onClientAction
in classPhysicalEntity
-
onClientFrame
public void onClientFrame(boolean selected)
Description copied from class:AbstractEntity
Client side: Callback on each frame for general logic- Overrides:
onClientFrame
in classPhysicalEntity
-
onClientActionMessage
public void onClientActionMessage(GameActionMessage message)
Description copied from class:AbstractEntity
Client side: Callback after a message has been received for this entity- Overrides:
onClientActionMessage
in classPhysicalEntity
-
onClientGenerateEntityDetails
public String onClientGenerateEntityDetails()
Description copied from class:AbstractEntity
Client side: Returns details about this entity. These details are text-only and are shown on the left in the entity details view after selecting an entity.- Overrides:
onClientGenerateEntityDetails
in classPhysicalEntity
-
getTilesetPosition
public CoordI2 getTilesetPosition()
- Overrides:
getTilesetPosition
in classPhysicalEntity
-
onServerConsoleControlEvent
public void onServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)
Description copied from class:PhysicalEntity
Server side: Called when the user interacted with a control in the entity console- Overrides:
onServerConsoleControlEvent
in classPhysicalEntity
-
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 classStructureEntity
-
onServerTurnPass1
public void onServerTurnPass1(GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Executes code on every server turn, main pass 2 of 2. Executed right after onServerTurnPass0 executed for all entities and before composite entities pass 1- Overrides:
onServerTurnPass1
in classPhysicalEntity
-
onServerTurnPass2PostComposites
public void onServerTurnPass2PostComposites(GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Executes code on every server turn, postprocessing pass after composite entity pass 2. It is highly recommended to not change the main business state here but only do calculations based on that state- Overrides:
onServerTurnPass2PostComposites
in classAbstractEntity
-
serverRestrictEntity
public boolean serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Checks whether this entity should be restricted to the player recipient, i.e. details about this entity (state, ...) are sent to this player or not. See also RestrictedEntitySurface- Overrides:
serverRestrictEntity
in classStructureEntity
-
serverPrepareRestrictedEntities
public void serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Prepares RestrictedEntity instances to be presented instead of this entity to a player. See also RestrictedEntitySurface- Overrides:
serverPrepareRestrictedEntities
in classAbstractEntity
-
serverCleanupRestrictedEntities
public void serverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Cleans up restricted entity surfaces. See also See also RestrictedEntitySurface- Overrides:
serverCleanupRestrictedEntities
in classAbstractEntity
-
serverTranslateEntityPass1
public void serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntity
Server side: Postprocesses rotation of the parent composite entity. This also means that this entity is now at a different position in the tile grid- Overrides:
serverTranslateEntityPass1
in classPhysicalEntity
-
canAttack
public abstract boolean canAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
- Specified by:
canAttack
in interfaceWeaponEntity
-
serverProcessFinalTarget
protected abstract void serverProcessFinalTarget(Random rand, GameSession gameSession, AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, CoordI2 weaponWorldPos, org.apache.commons.lang3.mutable.MutableObject<AbstractCompositeEntity> finalTargetComposite, CoordI2 finalTargetPos, CoordI2 finalTargetWorldPos)
-
serverAttack
protected abstract void serverAttack(GameSession gameSession, AbstractCompositeEntity composite, CoordI2 entityPos, Runnable onAttack)
-
serverGenerateWeaponFireEffectEvent
protected abstract ViewPortEffectEvent serverGenerateWeaponFireEffectEvent(GameSession gameSession, CoordI2 targetWorldPos, UUID compositeEntityId, CoordI2 entityPos)
-
calculateAccuracy
protected abstract double calculateAccuracy(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
calculateHealthFactor
protected double calculateHealthFactor(PhysicalEntityDef entityDef)
-
calculateRelativeVelocity
protected double calculateRelativeVelocity(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite)
-
calculateBaseDamage
public double calculateBaseDamage()
- Specified by:
calculateBaseDamage
in interfaceWeaponEntity
-
calculateMinDistance
public double calculateMinDistance()
- Specified by:
calculateMinDistance
in interfaceWeaponEntity
-
calculateMaxDistance
public double calculateMaxDistance()
- Specified by:
calculateMaxDistance
in interfaceWeaponEntity
-
calculateCooldown
public int calculateCooldown()
- Specified by:
calculateCooldown
in interfaceWeaponEntity
-
requestAttack
public void requestAttack(CoordI2 worldPos)
Description copied from interface:WeaponEntity
Requests weapon to attack- Specified by:
requestAttack
in interfaceWeaponEntity
- Parameters:
worldPos
- World position to attack. There has to be an entity at this position.
-
requestAttack
public void requestAttack(UUID targetCompositeEntityId, CoordI2 targetEntityPos)
- Specified by:
requestAttack
in interfaceWeaponEntity
-
abortAttack
public void abortAttack()
- Specified by:
abortAttack
in interfaceWeaponEntity
-
isControlAll
public boolean isControlAll()
- Specified by:
isControlAll
in interfaceWeaponEntity
-
setControlAll
public void setControlAll(boolean all)
- Specified by:
setControlAll
in interfaceWeaponEntity
-
serverAbortEntityAction
public void serverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)
Description copied from class:PhysicalEntity
Server side: Aborts the current action the entity is executing- Overrides:
serverAbortEntityAction
in classPhysicalEntity
-
canAttackGeneral
protected boolean canAttackGeneral(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
ignoreSelfHit
protected boolean ignoreSelfHit(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
checkWeaponDistance
protected boolean checkWeaponDistance(AbstractWeaponEntityDef entityDef, AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
publishStarvedAction
protected void publishStarvedAction(GameSession gameSession, String reason)
-
serverPublishUpdateAll
public void serverPublishUpdateAll(GameSession gameSession, UUID sender)
-
clientFireWeaponAccuracyAreaEffect
protected void clientFireWeaponAccuracyAreaEffect(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetCompositeEntity, CoordI2 targetEntityPos, boolean canAttack)
-
serverShipEditorEntityExecuteAutoMeshConsumption
public boolean serverShipEditorEntityExecuteAutoMeshConsumption()
- Specified by:
serverShipEditorEntityExecuteAutoMeshConsumption
in interfaceShipEditorEntityExecuteAware
- Returns:
- true if the mesh consumer action amount should be automatically claimed
-
onClientShipEditorEntityExecute
public void onClientShipEditorEntityExecute(boolean execute)
- Specified by:
onClientShipEditorEntityExecute
in interfaceShipEditorEntityExecuteAware
-
onServerShipEditorEntityExecute
public void onServerShipEditorEntityExecute(boolean execute)
- Specified by:
onServerShipEditorEntityExecute
in interfaceShipEditorEntityExecuteAware
-
serverCalculateEmEmission
public double serverCalculateEmEmission(GameSession gameSession)
Description copied from class:PhysicalEntity
Server side: Calculates the EM emission of this entity- Overrides:
serverCalculateEmEmission
in classPhysicalEntity
-
getMeshConsumerLane
public int getMeshConsumerLane()
- Specified by:
getMeshConsumerLane
in interfaceMeshConsumer
-
setMeshConsumerLane
public void setMeshConsumerLane(int meshConsumerLane)
- Specified by:
setMeshConsumerLane
in interfaceMeshConsumer
-
getMeshConsumerAmount
public double getMeshConsumerAmount()
- Specified by:
getMeshConsumerAmount
in interfaceMeshConsumer
-
setMeshConsumerAmount
public void setMeshConsumerAmount(double meshConsumerAmount)
- Specified by:
setMeshConsumerAmount
in interfaceMeshConsumer
-
getMeshConsumerActionAmount
public double getMeshConsumerActionAmount()
- Specified by:
getMeshConsumerActionAmount
in interfaceMeshConsumer
-
setMeshConsumerActionAmount
public void setMeshConsumerActionAmount(double meshConsumerActionAmount)
- Specified by:
setMeshConsumerActionAmount
in interfaceMeshConsumer
-
getMeshConsumerLanePrev
public int getMeshConsumerLanePrev()
- Specified by:
getMeshConsumerLanePrev
in interfaceMeshConsumer
-
setMeshConsumerLanePrev
public void setMeshConsumerLanePrev(int meshConsumerLanePrev)
- Specified by:
setMeshConsumerLanePrev
in interfaceMeshConsumer
-
getMeshConsumerType
public UUID getMeshConsumerType()
- Specified by:
getMeshConsumerType
in interfaceMeshConsumer
-
setMeshConsumerType
public void setMeshConsumerType(UUID meshConsumerType)
-
getPassiveMeshConsumerType
public UUID getPassiveMeshConsumerType()
- Specified by:
getPassiveMeshConsumerType
in interfaceMeshConsumer
-
getPassiveMeshConsumerLane
public int getPassiveMeshConsumerLane()
- Specified by:
getPassiveMeshConsumerLane
in interfaceMeshConsumer
-
setPassiveMeshConsumerLane
public void setPassiveMeshConsumerLane(int lane)
- Specified by:
setPassiveMeshConsumerLane
in interfaceMeshConsumer
-
getPassiveMeshConsumerLanePrev
public int getPassiveMeshConsumerLanePrev()
- Specified by:
getPassiveMeshConsumerLanePrev
in interfaceMeshConsumer
-
setPassiveMeshConsumerLanePrev
public void setPassiveMeshConsumerLanePrev(int lane)
- Specified by:
setPassiveMeshConsumerLanePrev
in interfaceMeshConsumer
-
getMeshConsumerAmountGranted
public double getMeshConsumerAmountGranted()
- Specified by:
getMeshConsumerAmountGranted
in interfaceMeshConsumer
-
setMeshConsumerAmountGranted
public void setMeshConsumerAmountGranted(double amount)
- Specified by:
setMeshConsumerAmountGranted
in interfaceMeshConsumer
-
getMeshConsumerOneTimeAmountGranted
public double getMeshConsumerOneTimeAmountGranted()
- Specified by:
getMeshConsumerOneTimeAmountGranted
in interfaceMeshConsumer
-
setMeshConsumerOneTimeAmountGranted
public void setMeshConsumerOneTimeAmountGranted(double meshConsumerOneTimeAmount)
- Specified by:
setMeshConsumerOneTimeAmountGranted
in interfaceMeshConsumer
-
isMeshConsumerResourceOut
public boolean isMeshConsumerResourceOut()
- Specified by:
isMeshConsumerResourceOut
in interfaceMeshConsumer
-
getMeshConsumerAmountGrantedPrev
public double getMeshConsumerAmountGrantedPrev()
- Specified by:
getMeshConsumerAmountGrantedPrev
in interfaceMeshConsumer
-
setMeshConsumerAmountGrantedPrev
public void setMeshConsumerAmountGrantedPrev(double meshConsumerAmountGrantedPrev)
- Specified by:
setMeshConsumerAmountGrantedPrev
in interfaceMeshConsumer
-
getLastOutput
public double getLastOutput()
- Specified by:
getLastOutput
in interfaceWeaponEntity
-
setLastOutput
public void setLastOutput(double lastOutput)
-
isMeshRedistributionSupported
public boolean isMeshRedistributionSupported()
- Specified by:
isMeshRedistributionSupported
in interfaceMeshConsumer
-
getLastDistance
public double getLastDistance()
- Specified by:
getLastDistance
in interfaceWeaponEntity
-
setLastDistance
public void setLastDistance(double lastDistance)
-
getLastAccuracy
public double getLastAccuracy()
- Specified by:
getLastAccuracy
in interfaceWeaponEntity
-
setLastAccuracy
public void setLastAccuracy(double lastAccuracy)
-
getWeaponControllerData
public WeaponEntityControllerData getWeaponControllerData()
-
setWeaponControllerData
public void setWeaponControllerData(WeaponEntityControllerData weaponControllerData)
-
isServerShipEditorEntityExecuting
public boolean isServerShipEditorEntityExecuting()
-
getEntityModSupport
public EntityModSupport<WeaponEntityMod> getEntityModSupport()
- Specified by:
getEntityModSupport
in interfaceHasEntityMod<WeaponEntityMod>
-
-