public class EntityStatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
alternativeEntityType |
protected java.util.List<ArticulationParameter> |
articulationParameters
variable length list of articulation parameters
|
protected int |
capabilities
a series of bit flags
|
protected DeadReckoningParameter |
deadReckoningParameters
parameters used for dead reckoning
|
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
Unique ID for an entity that is tied to this state information
|
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 EntityType |
entityType
Describes the type of entity in the world
|
protected short |
forceId
What force this entity is affiliated with, eg red, blue, neutral, etc
|
protected Marking |
marking
characters that can be used for debugging, or to draw unique strings on the side of entities in the world
|
protected byte |
numberOfArticulationParameters
How many articulation parameters are in the variable length list
|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
EntityStatePdu()
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 |
EntityType |
getAlternativeEntityType() |
java.util.List<ArticulationParameter> |
getArticulationParameters() |
int |
getCapabilities() |
DeadReckoningParameter |
getDeadReckoningParameters() |
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() |
EntityType |
getEntityType() |
short |
getForceId() |
Marking |
getMarking() |
int |
getMarshalledSize() |
byte |
getNumberOfArticulationParameters() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setAlternativeEntityType(EntityType pAlternativeEntityType) |
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters) |
void |
setCapabilities(int pCapabilities) |
void |
setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters) |
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 |
setEntityType(EntityType pEntityType) |
void |
setForceId(short pForceId) |
void |
setMarking(Marking pMarking) |
void |
setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value.
|
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 short forceId
protected byte numberOfArticulationParameters
protected EntityType entityType
protected EntityType alternativeEntityType
protected Vector3Float entityLinearVelocity
protected Vector3Double entityLocation
protected Orientation entityOrientation
protected int entityAppearance
protected DeadReckoningParameter deadReckoningParameters
protected Marking marking
protected int capabilities
protected java.util.List<ArticulationParameter> articulationParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setEntityID(EntityID pEntityID)
public EntityID getEntityID()
public void setForceId(short pForceId)
public short getForceId()
public byte getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
public void setEntityType(EntityType pEntityType)
public EntityType getEntityType()
public void setAlternativeEntityType(EntityType pAlternativeEntityType)
public EntityType getAlternativeEntityType()
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 setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters)
public DeadReckoningParameter getDeadReckoningParameters()
public void setMarking(Marking pMarking)
public Marking getMarking()
public void setCapabilities(int pCapabilities)
public int getCapabilities()
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