object VehicleData extends Marshallable[VehicleData] with Serializable
- Source
- VehicleData.scala
- Alphabetic
- By Inheritance
- VehicleData
- Serializable
- Marshallable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def CumulativeSeatedPlayerNamePadding(base: Long, next: Option[StreamBitSize]): Int
Increment the distance to the next mounted player's
namefield with the length of the previous entry, then calculate the new padding value for that next entry'snamefield.Increment the distance to the next mounted player's
namefield with the length of the previous entry, then calculate the new padding value for that next entry'snamefield.- base
the original distance to the last entry
- next
the length of the last entry, if one was parsed
- returns
the padding value, 0-7 bits
- def InitialStreamLengthToSeatEntries(hasVelocity: Boolean, format: Type): Long
Distance from the length field of a vehicle creation packet up until the start of the vehicle's inventory data.
Distance from the length field of a vehicle creation packet up until the start of the vehicle's inventory data. The only field excluded belongs to the original opcode for the packet. The parameters outline reasons why the length of the stream would be different and are used to determine the exact difference value.
Note:
198 includes theObjectCreateMessagepacket fields, without parent data, theVehicleDatafields, and the first three fields of theInternalSlot.- hasVelocity
the presence of a velocity field -
vel- in thePlacementDataobject for this vehicle- format
the
Codecsubtype for this vehicle- returns
the length of the bitstream
- See also
ObjectCreateMessage
- def PlayerData(basic_appearance: (Int) => CharacterAppearanceData, character_data: (Boolean, Boolean) => CharacterData, drawn_slot: Type, accumulative: Long): PlayerData
Constructor for
PlayerDatathat ignores the coordinate information and the inventory and performs a vehicle-unique calculation of the padding value.Constructor for
PlayerDatathat ignores the coordinate information and the inventory and performs a vehicle-unique calculation of the padding value. It passes information between the three major divisions for the purposes of offset calculations. This constructor should be used for players that are mounted.- basic_appearance
a curried function for the common fields regarding the the character's appearance
- character_data
a curried function for the class-specific data that explains about the character
- drawn_slot
the holster that is initially drawn
- accumulative
the input position for the stream up to which this entry; used to calculate the padding value for the player's name in
CharacterAppearanceData- returns
a
PlayerDataobject
- def PlayerData(basic_appearance: (Int) => CharacterAppearanceData, character_data: (Boolean, Boolean) => CharacterData, inventory: InventoryData, drawn_slot: Type, accumulative: Long): PlayerData
Constructor that ignores the coordinate information and performs a vehicle-unique calculation of the padding value.
Constructor that ignores the coordinate information and performs a vehicle-unique calculation of the padding value. It passes information between the three major divisions for the purposes of offset calculations. This constructor should be used for players that are mounted.
- basic_appearance
a curried function for the common fields regarding the the character's appearance
- character_data
a curried function for the class-specific data that explains about the character
- inventory
the player's inventory
- drawn_slot
the holster that is initially drawn
- accumulative
the input position for the stream up to which this entry; used to calculate the padding value for the player's name in
CharacterAppearanceData- returns
a
PlayerDataobject
- def apply(pos: PlacementData, basic: CommonFieldData, health: Int, driveState: types.DriveState.Value, cloak: Boolean, format: VariantVehicleData, inventory: Option[InventoryData]): VehicleData
Overloaded constructor for specifically handling
Variantvehicle format.Overloaded constructor for specifically handling
Variantvehicle format.- basic
a field that encompasses some data used by the vehicle, including
factionandowner- health
the amount of health the vehicle has, as a percentage of a filled bar (255)
- driveState
a representation for the current mobility state
- cloak
if a vehicle (that can cloak) is cloaked
- inventory
the seats, mounted weapons, and utilities (such as terminals) that are currently included
- def apply(pos: PlacementData, basic: CommonFieldData, health: Int, driveState: types.DriveState.Value, cloak: Boolean, format: UtilityVehicleData, inventory: Option[InventoryData]): VehicleData
Overloaded constructor for specifically handling
Utilityvehicle format.Overloaded constructor for specifically handling
Utilityvehicle format.- basic
a field that encompasses some data used by the vehicle, including
factionandowner- health
the amount of health the vehicle has, as a percentage of a filled bar (255)
- driveState
a representation for the current mobility state
- cloak
if a vehicle (that can cloak) is cloaked
- inventory
the seats, mounted weapons, and utilities (such as terminals) that are currently included
- def apply(pos: PlacementData, basic: CommonFieldData, health: Int, driveState: types.DriveState.Value, cloak: Boolean, inventory: Option[InventoryData]): VehicleData
Overloaded constructor for specifically handling
Normalvehicle format.Overloaded constructor for specifically handling
Normalvehicle format.- basic
a field that encompasses some data used by the vehicle, including
factionandowner- health
the amount of health the vehicle has, as a percentage of a filled bar (255)
- driveState
a representation for the current mobility state
- cloak
if a vehicle (that can cloak) is cloaked
- inventory
the seats, mounted weapons, and utilities (such as terminals) that are currently included
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def codec(vehicle_type: VehicleFormat.Value): Codec[VehicleData]
- implicit val codec: Codec[VehicleData]
- Definition Classes
- VehicleData → Marshallable
- def decode(a: BitVector): Attempt[DecodeResult[VehicleData]]
- Definition Classes
- Marshallable
- def encode(a: VehicleData): Attempt[BitVector]
- Definition Classes
- Marshallable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()