Class StructureEntityDef
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntityDef
-
- de.extio.spacecraft.shared.model.entity.builtin.def.PhysicalEntityDef
-
- de.extio.spacecraft.shared.model.entity.builtin.def.StructureEntityDef
-
- All Implemented Interfaces:
CraftableEntityDef
,LootableEntityDef
,ProcessableEntityDef
,StorableEntityDef
,UpgradeableEntityDef
- Direct Known Subclasses:
AbstractWeaponEntityDef
public class StructureEntityDef extends PhysicalEntityDef implements LootableEntityDef
Structure entities are a specialized form of physical entities - everything that is part of the structure of a ship: walls, systems, engines, weapons, ...
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructureEntityDef.StructureEntityPlaceMode
-
Nested classes/interfaces inherited from class de.extio.spacecraft.shared.model.entity.builtin.def.PhysicalEntityDef
PhysicalEntityDef.PhysicalEntitySizeCategory, PhysicalEntityDef.PhysicalEntityTilesetPosesMode
-
Nested classes/interfaces inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntityDef
AbstractEntityDef.PlacementCompatibility
-
-
Constructor Summary
Constructors Constructor Description StructureEntityDef()
-
Method Summary
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.def.PhysicalEntityDef
getAnimationTiles, getAudioOnDamage, getAudioOnDamageElementPriority, getAudioOnDestroyed, getAudioOnDestroyedElementPriority, getCraftingCategory, getDamagePlateau, getEmBaseEmission, getHealth, getMass, getNoOperatorTilesetPosition, getOnDamageSplitThreshold, getProcessingCategory, getRepairAmountPerTurn, getSizeCategory, getTilesetDisabled, getTilesetInoperable, getTilesetPoseIntervalMax, getTilesetPoseIntervalMin, getTilesetPoseMode, getTilesetPoses, getUpgradeCategory, getUpgradeTo, isAnimatedMovement, isConsoleControl, isConsoleControlEnabledState, isHideHealthBar, isNeedsOperator, isNeedsOperatorLogin, isOnDamageDestroyImmediately, isOnDamageSplit, isOperating, isPlayerCommandsMove, isRepairable, isRestrictedSkipSumHealth, isSelectable, setAnimatedMovement, setAnimationTiles, setAudioOnDamage, setAudioOnDamageElementPriority, setAudioOnDestroyed, setAudioOnDestroyedElementPriority, setConsoleControl, setConsoleControlEnabledState, setCraftingCategory, setDamagePlateau, setEmBaseEmission, setHealth, setHideHealthBar, setMass, setNeedsOperator, setNeedsOperatorLogin, setNoOperatorTilesetPosition, setOnDamageDestroyImmediately, setOnDamageSplit, setOnDamageSplitThreshold, setOperating, setPlayerCommandsMove, setProcessingCategory, setRepairable, setRepairAmountPerTurn, setRestrictedSkipSumHealth, setSelectable, setSizeCategory, setTilesetDisabled, setTilesetInoperable, setTilesetPoseIntervalMax, setTilesetPoseIntervalMin, setTilesetPoseMode, setTilesetPoses, setUpgradeCategory, setUpgradeTo
-
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
-
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.def.StorableEntityDef
getMass
-
-
-
-
Method Detail
-
getEdges
public int getEdges()
-
setEdges
public void setEdges(int edges)
-
getPlacementMode
public StructureEntityDef.StructureEntityPlaceMode getPlacementMode()
-
setPlacementMode
public void setPlacementMode(StructureEntityDef.StructureEntityPlaceMode placementMode)
-
getCooldown
public int getCooldown()
-
setCooldown
public void setCooldown(int cooldown)
-
isBlocksDamage
public boolean isBlocksDamage()
-
setBlocksDamage
public void setBlocksDamage(boolean blocksDamage)
-
isCooldownAfterEnable
public boolean isCooldownAfterEnable()
-
setCooldownAfterEnable
public void setCooldownAfterEnable(boolean cooldownAfterEnable)
-
isLootable
public boolean isLootable()
- Specified by:
isLootable
in interfaceLootableEntityDef
-
setLootable
public void setLootable(boolean lootable)
-
getLootDropProbability
public double getLootDropProbability()
- Specified by:
getLootDropProbability
in interfaceLootableEntityDef
-
setLootDropProbability
public void setLootDropProbability(double lootDropProbability)
-
getLootDirectProbability
public double getLootDirectProbability()
- Specified by:
getLootDirectProbability
in interfaceLootableEntityDef
-
setLootDirectProbability
public void setLootDirectProbability(double lootDirectProbability)
-
isDropEntityMods
public boolean isDropEntityMods()
- Specified by:
isDropEntityMods
in interfaceLootableEntityDef
-
getStorageCapacityNeeded
public int getStorageCapacityNeeded()
- Specified by:
getStorageCapacityNeeded
in interfaceStorableEntityDef
-
setStorageCapacityNeeded
public void setStorageCapacityNeeded(int storageCapacityNeeded)
-
isStorablePreselectInEditor
public boolean isStorablePreselectInEditor()
- Specified by:
isStorablePreselectInEditor
in interfaceStorableEntityDef
-
setStorablePreselectInEditor
public void setStorablePreselectInEditor(boolean storablePreselectInEditor)
-
isPreventFields
public boolean isPreventFields()
-
setPreventFields
public void setPreventFields(boolean preventFields)
-
getLootDropAlternative
public UUID getLootDropAlternative()
- Specified by:
getLootDropAlternative
in interfaceLootableEntityDef
-
setLootDropAlternative
public void setLootDropAlternative(UUID lootDropAlternative)
-
-