object ObjectCreateBase
- Source
- ObjectCreateBase.scala
- Alphabetic
- By Inheritance
- ObjectCreateBase
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val baseCodec: Codec[basePattern]
Codec
for handling the primary fields of bothObjectCreateMessage
packets andObjectCreateDetailedMessage
packets. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodeData(objectClass: Int, data: BitVector, getCodecFunc: (Int) => Codec[ConstructorData]): Attempt[ConstructorData]
Take bit data and transform it into an object that expresses the important information of a game piece.
Take bit data and transform it into an object that expresses the important information of a game piece. This function is fail-safe because it catches errors involving bad parsing of the bitstream data. Generally, the
Exception
messages themselves are not useful here. The important parts are what the packet thought the object class should be and what it actually processed.- objectClass
the code for the type of object being constructed
- data
the bitstream data
- getCodecFunc
a lookup function that returns a
Codec
for this object class- returns
the optional constructed object
- See also
ObjectClass
- def encodeData(objectClass: Int, obj: ConstructorData, getCodecFunc: (Int) => Codec[ConstructorData]): Attempt[BitVector]
Take the important information of a game piece and transform it into bit data.
Take the important information of a game piece and transform it into bit data. This function is fail-safe because it catches errors involving bad parsing of the object data. Generally, the
Exception
messages themselves are not useful here.- objectClass
the code for the type of object being deconstructed
- obj
the object data
- getCodecFunc
a lookup function that returns a
Codec
for this object class- returns
the bitstream data
- See also
ObjectClass
- 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()
- def streamLen(parentInfo: Option[ObjectCreateMessageParent], data: StreamBitSize): Long
Calculate the stream length in number of bits by factoring in the whole message in two portions.
Calculate the stream length in number of bits by factoring in the whole message in two portions. This process automates for: object encoding.
Ignoring the parent data, constant field lengths have already been factored into the results. That includes: the length of the stream length field (32u), the object's class (11u), the object's GUID (16u), and the bit to determine if there will be parent data. In total, these fields form a known fixed length of 60u.- parentInfo
if defined, the relationship between this object and another object (its parent); information about the parent adds either 24u or 32u
- data
if defined, the data used to construct this type of object; the data length is indeterminate until it is walked-through; note: the type is
StreamBitSize
as opposed toConstructorData
- returns
the total length of the resulting data stream in bits
- 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()