Class PhysicalEntityDef
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntityDef
-
- de.extio.spacecraft.shared.model.entity.builtin.def.PhysicalEntityDef
-
- All Implemented Interfaces:
CraftableEntityDef
,ProcessableEntityDef
,UpgradeableEntityDef
- Direct Known Subclasses:
AbstractMeshEntityDef
,CrewEntityDef
,FloorEntityDef
,ImageSurfaceEntityDef
,LootContainerEntityDef
,StructureEntityDef
public abstract class PhysicalEntityDef extends AbstractEntityDef implements UpgradeableEntityDef, CraftableEntityDef, ProcessableEntityDef
Physical entities represent everything that has a form, e.g. doors, weapons, crew, ...
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhysicalEntityDef.PhysicalEntitySizeCategory
static class
PhysicalEntityDef.PhysicalEntityTilesetPosesMode
-
Nested classes/interfaces inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntityDef
AbstractEntityDef.PlacementCompatibility
-
-
Constructor Summary
Constructors Constructor Description PhysicalEntityDef()
-
Method Summary
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntityDef
getAutoOrientation, getCategory, getDisplayName, getLayer, getLiveEntity, getModName, getPlacementCompatibility, getTileset, getTilesetModName, getTilesetName, getTilesetPosition, getUuid, isEnabled, isPlaceable, setAutoOrientation, setCategory, setDisplayName, setEnabled, setLayer, setLiveEntity, setModName, setPlaceable, setPlacementCompatibility, setTileset, setTilesetModName, setTilesetName, setTilesetPosition, setUuid
-
-
-
-
Method Detail
-
getHealth
public double getHealth()
-
setHealth
public void setHealth(double health)
-
getMass
public double getMass()
-
setMass
public void setMass(double mass)
-
isAnimatedMovement
public boolean isAnimatedMovement()
-
setAnimatedMovement
public void setAnimatedMovement(boolean animatedMovement)
-
isPlayerCommandsMove
public boolean isPlayerCommandsMove()
-
setPlayerCommandsMove
public void setPlayerCommandsMove(boolean playerCommandsMove)
-
isOnDamageDestroyImmediately
public boolean isOnDamageDestroyImmediately()
-
setOnDamageDestroyImmediately
public void setOnDamageDestroyImmediately(boolean onDamageDestroyImmediately)
-
isOnDamageSplit
public boolean isOnDamageSplit()
-
setOnDamageSplit
public void setOnDamageSplit(boolean onDamageSplit)
-
getOnDamageSplitThreshold
public int getOnDamageSplitThreshold()
-
setOnDamageSplitThreshold
public void setOnDamageSplitThreshold(int onDamageSplitThreshold)
-
getAnimationTiles
public Area2 getAnimationTiles()
-
setAnimationTiles
public void setAnimationTiles(Area2 animationTiles)
-
getTilesetPoses
public Area2 getTilesetPoses()
-
setTilesetPoses
public void setTilesetPoses(Area2 tilesetPoses)
-
getTilesetPoseIntervalMin
public int getTilesetPoseIntervalMin()
-
setTilesetPoseIntervalMin
public void setTilesetPoseIntervalMin(int tileSetPoseIntervalMin)
-
getTilesetPoseIntervalMax
public int getTilesetPoseIntervalMax()
-
setTilesetPoseIntervalMax
public void setTilesetPoseIntervalMax(int tileSetPoseIntervalMax)
-
isSelectable
public boolean isSelectable()
-
setSelectable
public void setSelectable(boolean selectable)
-
isNeedsOperator
public boolean isNeedsOperator()
-
setNeedsOperator
public void setNeedsOperator(boolean needsOperator)
-
isOperating
public boolean isOperating()
-
setOperating
public void setOperating(boolean operating)
-
getNoOperatorTilesetPosition
public CoordI2 getNoOperatorTilesetPosition()
-
setNoOperatorTilesetPosition
public void setNoOperatorTilesetPosition(CoordI2 noOperatorTilesetPosition)
-
getTilesetInoperable
public CoordI2 getTilesetInoperable()
-
setTilesetInoperable
public void setTilesetInoperable(CoordI2 tilesetInoperable)
-
isNeedsOperatorLogin
public boolean isNeedsOperatorLogin()
-
setNeedsOperatorLogin
public void setNeedsOperatorLogin(boolean needsOperatorLogin)
-
isConsoleControl
public boolean isConsoleControl()
-
setConsoleControl
public void setConsoleControl(boolean consoleControl)
-
isConsoleControlEnabledState
public boolean isConsoleControlEnabledState()
-
setConsoleControlEnabledState
public void setConsoleControlEnabledState(boolean consoleControlEnabledState)
-
getTilesetDisabled
public CoordI2 getTilesetDisabled()
-
setTilesetDisabled
public void setTilesetDisabled(CoordI2 tilesetDisabled)
-
getTilesetPoseMode
public PhysicalEntityDef.PhysicalEntityTilesetPosesMode getTilesetPoseMode()
-
setTilesetPoseMode
public void setTilesetPoseMode(PhysicalEntityDef.PhysicalEntityTilesetPosesMode tilesetPoseMode)
-
getRepairAmountPerTurn
public double getRepairAmountPerTurn()
-
setRepairAmountPerTurn
public void setRepairAmountPerTurn(double repairAmountPerTurn)
-
isRepairable
public boolean isRepairable()
-
setRepairable
public void setRepairable(boolean repairable)
-
getDamagePlateau
public double getDamagePlateau()
-
setDamagePlateau
public void setDamagePlateau(double damagePlateau)
-
isHideHealthBar
public boolean isHideHealthBar()
-
setHideHealthBar
public void setHideHealthBar(boolean hideHealthBar)
-
getEmBaseEmission
public double getEmBaseEmission()
-
setEmBaseEmission
public void setEmBaseEmission(double emBaseEmission)
-
getSizeCategory
public int getSizeCategory()
-
setSizeCategory
public void setSizeCategory(int sizeCategory)
-
getUpgradeCategory
public String getUpgradeCategory()
- Specified by:
getUpgradeCategory
in interfaceUpgradeableEntityDef
-
setUpgradeCategory
public void setUpgradeCategory(String upgradeCategory)
-
getUpgradeTo
public String getUpgradeTo()
- Specified by:
getUpgradeTo
in interfaceUpgradeableEntityDef
-
setUpgradeTo
public void setUpgradeTo(String upgradeTo)
-
getCraftingCategory
public String getCraftingCategory()
- Specified by:
getCraftingCategory
in interfaceCraftableEntityDef
-
setCraftingCategory
public void setCraftingCategory(String craftingCategory)
-
getProcessingCategory
public String getProcessingCategory()
- Specified by:
getProcessingCategory
in interfaceProcessableEntityDef
-
setProcessingCategory
public void setProcessingCategory(String processingCategory)
-
getAudioOnDamage
public ModAndResourceName getAudioOnDamage()
-
setAudioOnDamage
public void setAudioOnDamage(ModAndResourceName audioOnDamage)
-
getAudioOnDestroyed
public ModAndResourceName getAudioOnDestroyed()
-
setAudioOnDestroyed
public void setAudioOnDestroyed(ModAndResourceName audioOnDestroyed)
-
getAudioOnDamageElementPriority
public int getAudioOnDamageElementPriority()
-
setAudioOnDamageElementPriority
public void setAudioOnDamageElementPriority(int audioOnDamageElementPriority)
-
getAudioOnDestroyedElementPriority
public int getAudioOnDestroyedElementPriority()
-
setAudioOnDestroyedElementPriority
public void setAudioOnDestroyedElementPriority(int audioOnDestroyedElementPriority)
-
isRestrictedSkipSumHealth
public boolean isRestrictedSkipSumHealth()
-
setRestrictedSkipSumHealth
public void setRestrictedSkipSumHealth(boolean restrictedSkipSumHealth)
-
-