public class EntityStateUpdatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ArticulationParameter> |
articulationParameters |
protected int |
entityAppearance
a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc.
|
protected EntityID |
entityID
This field shall identify the entity issuing the PDU
|
protected Vector3Float |
entityLinearVelocity
Describes the speed of the entity in the world
|
protected Vector3Double |
entityLocation
describes the location of the entity in the world
|
protected Orientation |
entityOrientation
describes the orientation of the entity, in euler angles
|
protected short |
numberOfArticulationParameters
How many articulation parameters are in the variable length list
|
protected byte |
padding1
Padding
|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
EntityStateUpdatePdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
java.util.List<ArticulationParameter> |
getArticulationParameters() |
int |
getEntityAppearance_brakeLights()
0 off 1 on
|
int |
getEntityAppearance_camouflageType()
0 desert 1 winter 2 forest 3 unused
|
int |
getEntityAppearance_damage()
0 no damage, 1 slight damage, 2 moderate, 3 destroyed
|
int |
getEntityAppearance_firepower()
0 no firepower iill, 1 firepower kill
|
int |
getEntityAppearance_flaming()
0 off 1 on
|
int |
getEntityAppearance_hatch()
0 NA 1 closed popped 3 popped and person visible 4 open 5 open and person visible
|
int |
getEntityAppearance_headlights()
0 off 1 on
|
int |
getEntityAppearance_launcher()
0 not raised 1 raised
|
int |
getEntityAppearance_mobility()
0 no mobility kill, 1 mobility kill
|
int |
getEntityAppearance_paintScheme()
0 uniform color, 1 camouflage
|
int |
getEntityAppearance_smoke()
0 no smoke, 1 smoke plume, 2 engine smoke, 3 engine smoke and plume
|
int |
getEntityAppearance_tailLights()
0 off 1 on
|
int |
getEntityAppearance_trailingEffects()
dust cloud, 0 none 1 small 2 medium 3 large
|
int |
getEntityAppearance() |
EntityID |
getEntityID() |
Vector3Float |
getEntityLinearVelocity() |
Vector3Double |
getEntityLocation() |
Orientation |
getEntityOrientation() |
int |
getMarshalledSize() |
short |
getNumberOfArticulationParameters() |
byte |
getPadding1() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters) |
void |
setEntityAppearance_brakeLights(int val)
0 off 1 on
|
void |
setEntityAppearance_camouflageType(int val)
0 desert 1 winter 2 forest 3 unused
|
void |
setEntityAppearance_damage(int val)
0 no damage, 1 slight damage, 2 moderate, 3 destroyed
|
void |
setEntityAppearance_firepower(int val)
0 no firepower iill, 1 firepower kill
|
void |
setEntityAppearance_flaming(int val)
0 off 1 on
|
void |
setEntityAppearance_hatch(int val)
0 NA 1 closed popped 3 popped and person visible 4 open 5 open and person visible
|
void |
setEntityAppearance_headlights(int val)
0 off 1 on
|
void |
setEntityAppearance_launcher(int val)
0 not raised 1 raised
|
void |
setEntityAppearance_mobility(int val)
0 no mobility kill, 1 mobility kill
|
void |
setEntityAppearance_paintScheme(int val)
0 uniform color, 1 camouflage
|
void |
setEntityAppearance_smoke(int val)
0 no smoke, 1 smoke plume, 2 engine smoke, 3 engine smoke and plume
|
void |
setEntityAppearance_tailLights(int val)
0 off 1 on
|
void |
setEntityAppearance_trailingEffects(int val)
dust cloud, 0 none 1 small 2 medium 3 large
|
void |
setEntityAppearance(int pEntityAppearance) |
void |
setEntityID(EntityID pEntityID) |
void |
setEntityLinearVelocity(Vector3Float pEntityLinearVelocity) |
void |
setEntityLocation(Vector3Double pEntityLocation) |
void |
setEntityOrientation(Orientation pEntityOrientation) |
void |
setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value.
|
void |
setPadding1(byte pPadding1) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID entityID
protected byte padding1
protected short numberOfArticulationParameters
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected Orientation entityOrientation
protected int entityAppearance
protected java.util.List<ArticulationParameter> articulationParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setPadding1(byte pPadding1)
public byte getPadding1()
public short getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)
public void setEntityLinearVelocity(Vector3Float pEntityLinearVelocity)
public Vector3Float getEntityLinearVelocity()
public void setEntityLocation(Vector3Double pEntityLocation)
public Vector3Double getEntityLocation()
public void setEntityOrientation(Orientation pEntityOrientation)
public Orientation getEntityOrientation()
public void setEntityAppearance(int pEntityAppearance)
public int getEntityAppearance()
public void setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
public java.util.List<ArticulationParameter> getArticulationParameters()
public int getEntityAppearance_paintScheme()
public void setEntityAppearance_paintScheme(int val)
public int getEntityAppearance_mobility()
public void setEntityAppearance_mobility(int val)
public int getEntityAppearance_firepower()
public void setEntityAppearance_firepower(int val)
public int getEntityAppearance_damage()
public void setEntityAppearance_damage(int val)
public int getEntityAppearance_smoke()
public void setEntityAppearance_smoke(int val)
public int getEntityAppearance_trailingEffects()
public void setEntityAppearance_trailingEffects(int val)
public int getEntityAppearance_hatch()
public void setEntityAppearance_hatch(int val)
public int getEntityAppearance_headlights()
public void setEntityAppearance_headlights(int val)
public int getEntityAppearance_tailLights()
public void setEntityAppearance_tailLights(int val)
public int getEntityAppearance_brakeLights()
public void setEntityAppearance_brakeLights(int val)
public int getEntityAppearance_flaming()
public void setEntityAppearance_flaming(int val)
public int getEntityAppearance_launcher()
public void setEntityAppearance_launcher(int val)
public int getEntityAppearance_camouflageType()
public void setEntityAppearance_camouflageType(int val)
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to