Package de.extio.spacecraft.shared.bo
Class MeshConsumerSupport
- java.lang.Object
-
- de.extio.spacecraft.shared.bo.MeshConsumerSupport
-
public final class MeshConsumerSupport extends Object
Support class for every entity that is part of the mesh system. It contains a lot of important helper methods, create an instance per entity and keep it as part of the entity state.
-
-
Constructor Summary
Constructors Constructor Description MeshConsumerSupport()
-
Method Summary
-
-
-
Method Detail
-
localInit
public void localInit(AbstractEntityDef entityDef)
-
applyDefaults
public void applyDefaults(AbstractEntityDef entityDef)
-
update
public void update(MeshConsumerSupport other)
-
onClientDrawEntityActions
public void onClientDrawEntityActions(List<RenderingBo> renderingBo, AbstractEntity entity)
-
onClientGenerateEntityDetails
public String onClientGenerateEntityDetails(UUID parentCompositeId, MeshConsumerDef entityDef, boolean includeLaneDetails)
-
isBaseResourceStarved
public boolean isBaseResourceStarved(MeshLane lane)
-
isBaseResourceOut
public boolean isBaseResourceOut(MeshLane lane)
-
requestActionSimulated
public double requestActionSimulated(UUID meshConsumerId, UUID parentCompositeEntityId, MeshConsumer entity, double inAmountFactor)
-
serverRequestAction
public void serverRequestAction(UUID meshConsumerId, UUID parentCompositeEntityId, MeshConsumer entity, double inAmountFactor, GameSession gameSession, Consumer<Double> callback)
-
getMeshBean
public MeshManager getMeshBean()
-
serverCalculateEmEmission
public double serverCalculateEmEmission(GameSession gameSession, PhysicalEntity entity)
-
onServerTurnPass2PostComposites
public void onServerTurnPass2PostComposites(GameSession gameSession, PhysicalEntity entity)
-
getMeshConsumerLane
public int getMeshConsumerLane()
-
setMeshConsumerLane
public void setMeshConsumerLane(int meshConsumerLane)
-
getMeshConsumerAmount
public double getMeshConsumerAmount()
-
setMeshConsumerAmount
public void setMeshConsumerAmount(double meshConsumerAmount)
-
getMeshConsumerActionAmount
public double getMeshConsumerActionAmount()
-
setMeshConsumerActionAmount
public void setMeshConsumerActionAmount(double meshConsumerActionAmount)
-
getMeshConsumerLanePrev
public int getMeshConsumerLanePrev()
-
setMeshConsumerLanePrev
public void setMeshConsumerLanePrev(int meshConsumerLanePrev)
-
getMeshConsumerType
public UUID getMeshConsumerType()
-
setMeshConsumerType
public void setMeshConsumerType(UUID meshConsumerType)
-
getMeshPassiveConsumerLane
public int getMeshPassiveConsumerLane()
-
setMeshPassiveConsumerLane
public void setMeshPassiveConsumerLane(int meshPassiveConsumerLane)
-
getMeshPassiveConsumerLanePrev
public int getMeshPassiveConsumerLanePrev()
-
setMeshPassiveConsumerLanePrev
public void setMeshPassiveConsumerLanePrev(int meshPassiveConsumerLanePrev)
-
getMeshPassiveConsumerType
public UUID getMeshPassiveConsumerType()
-
setMeshPassiveConsumerType
public void setMeshPassiveConsumerType(UUID meshPassiveConsumerType)
-
setMeshConsumerAmountGranted
public void setMeshConsumerAmountGranted(double amount)
-
getMeshConsumerAmountGranted
public double getMeshConsumerAmountGranted()
-
getMeshConsumerOneTimeAmountGranted
public double getMeshConsumerOneTimeAmountGranted()
-
setMeshConsumerOneTimeAmountGranted
public void setMeshConsumerOneTimeAmountGranted(double meshConsumerOneTimeAmountGranted)
-
isMeshConsumerResourceOut
public boolean isMeshConsumerResourceOut()
-
setMeshConsumerResourceOut
public void setMeshConsumerResourceOut(boolean meshConsumerResourceOut)
-
isClientDrawIndicatorOutWhenBaseResourceStarved
public boolean isClientDrawIndicatorOutWhenBaseResourceStarved()
-
setClientDrawIndicatorOutWhenBaseResourceStarved
public void setClientDrawIndicatorOutWhenBaseResourceStarved(boolean clientDrawIndicatorOutWhenBaseResourceStarved)
-
getMeshConsumerAmountGrantedPrev
public double getMeshConsumerAmountGrantedPrev()
-
setMeshConsumerAmountGrantedPrev
public void setMeshConsumerAmountGrantedPrev(double meshConsumerAmountGrantedPrev)
-
-