public class DirectedEnergyDamage
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected DEDamageDescriptionComponentDamageStatus |
componentDamageStatus
enumeration uid 315
|
protected EntityDamageStatusComponentIdentification |
componentIdentification
enumeration uid 314
|
protected DEDamageDescriptionComponentVisualDamageStatus |
componentVisualDamageStatus
enumeration uid 317
|
protected DEDamageDescriptionComponentVisualSmokeColor |
componentVisualSmokeColor
enumeration uid 316
|
protected float |
damageDiameter
Size of damaged area, in meters
|
protected Vector3Float |
damageLocation
location of damage, relative to center of entity
|
protected EventIdentifier |
fireEventID
For any component damage resulting this field shall be set to the fire event ID from that PDU.
|
protected short |
padding
padding
|
protected short |
padding2
padding
|
protected short |
recordLength
DE Record Length (bytes)
|
protected int |
recordType
DE Record Type.
|
protected float |
temperature
average temp of the damaged area, in degrees celsius.
|
Constructor and Description |
---|
DirectedEnergyDamage()
Constructor
|
protected int recordType
protected short recordLength
protected short padding
protected Vector3Float damageLocation
protected float damageDiameter
protected float temperature
protected EntityDamageStatusComponentIdentification componentIdentification
protected DEDamageDescriptionComponentDamageStatus componentDamageStatus
protected DEDamageDescriptionComponentVisualDamageStatus componentVisualDamageStatus
protected DEDamageDescriptionComponentVisualSmokeColor componentVisualSmokeColor
protected EventIdentifier fireEventID
protected short padding2
public int getMarshalledSize()
public DirectedEnergyDamage setRecordType(int pRecordType)
recordType
public int getRecordType()
recordType
public DirectedEnergyDamage setRecordLength(short pRecordLength)
recordLength
public short getRecordLength()
recordLength
public DirectedEnergyDamage setPadding(short pPadding)
padding
public short getPadding()
padding
public DirectedEnergyDamage setDamageLocation(Vector3Float pDamageLocation)
damageLocation
public Vector3Float getDamageLocation()
damageLocation
public DirectedEnergyDamage setDamageDiameter(float pDamageDiameter)
damageDiameter
public float getDamageDiameter()
damageDiameter
public DirectedEnergyDamage setTemperature(float pTemperature)
temperature
public float getTemperature()
temperature
public DirectedEnergyDamage setComponentIdentification(EntityDamageStatusComponentIdentification pComponentIdentification)
componentIdentification
public EntityDamageStatusComponentIdentification getComponentIdentification()
componentIdentification
public DirectedEnergyDamage setComponentDamageStatus(DEDamageDescriptionComponentDamageStatus pComponentDamageStatus)
componentDamageStatus
public DEDamageDescriptionComponentDamageStatus getComponentDamageStatus()
componentDamageStatus
public DirectedEnergyDamage setComponentVisualDamageStatus(DEDamageDescriptionComponentVisualDamageStatus pComponentVisualDamageStatus)
componentVisualDamageStatus
public DEDamageDescriptionComponentVisualDamageStatus getComponentVisualDamageStatus()
componentVisualDamageStatus
public DirectedEnergyDamage setComponentVisualSmokeColor(DEDamageDescriptionComponentVisualSmokeColor pComponentVisualSmokeColor)
componentVisualSmokeColor
public DEDamageDescriptionComponentVisualSmokeColor getComponentVisualSmokeColor()
componentVisualSmokeColor
public DirectedEnergyDamage setFireEventID(EventIdentifier pFireEventID)
fireEventID
public EventIdentifier getFireEventID()
fireEventID
public DirectedEnergyDamage setPadding2(short pPadding2)
padding2
public short getPadding2()
padding2
public void marshal(java.io.DataOutputStream dos)
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied objectobj
- the object to compare to