ExactMove

The exactmove extended info block is used to provide precise fine-tuned visual movement of an avatar.

Parameters

encoders

the array of client-specific encoders for exact move.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Delay1 defines how many client cycles (20ms/cc) until the avatar arrives at x/z 1 coordinate.

Link copied to clipboard

Delay2 defines how many client cycles (20ms/cc) until the avatar arrives at x/z 2 coordinate.

Link copied to clipboard

The coordinate delta between the current absolute x coordinate and where the avatar is going.

Link copied to clipboard

The coordinate delta between the current absolute x coordinate and where the avatar is going.

Link copied to clipboard

The coordinate delta between the current absolute z coordinate and where the avatar is going.

Link copied to clipboard

The coordinate delta between the current absolute z coordinate and where the avatar is going.

Link copied to clipboard

The angle the avatar will be facing throughout the exact movement, with 0 implying south, 512 west, 1024 north and 1536 east; interpolate between to get finer directions.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun clear()

Clears this extended info block, making it ready for use by another avatar.

Link copied to clipboard
fun getBuffer(oldSchoolClientType: OldSchoolClientType): ByteBuf?

Gets the latest pre-computed buffer for the given oldSchoolClientType.

Link copied to clipboard
fun getEncoder(oldSchoolClientType: OldSchoolClientType): PrecomputedExtendedInfoEncoder<ExactMove>?

Gets the encoder for a given oldSchoolClientType.

Link copied to clipboard
fun isPrecomputed(oldSchoolClientType: OldSchoolClientType): Boolean

Checks whether a buffer has been precomputed on the specified client type.

Link copied to clipboard
fun setBuffer(clientTypeId: Int, buffer: ByteBuf)

Sets the client-specific buffer at index clientTypeId.