movement

package
v0.0.0-...-e57d4e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMovementBytes

func GenerateMovementBytes(moveData Data) mpacket.Packet

GenerateMovementBytes from movement data

func ParseMovement

func ParseMovement(reader mpacket.Reader) (Data, Frag)

ParseMovement data

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data for movement

func (Data) ValidateChar

func (data Data) ValidateChar(player player) bool

ValidateChar movement

func (Data) ValidateMob

func (data Data) ValidateMob(mob mob) bool

ValidateMob movement

type Frag

type Frag struct {
	// contains filtered or unexported fields
}

Frag data asociated with a movement

func (Frag) Foothold

func (f Frag) Foothold() int16

Foothold of the object for the fragment

func (Frag) Stance

func (f Frag) Stance() byte

Stance of object for the fragment

func (Frag) X

func (f Frag) X() int16

X axis position of the object for the fragment

func (Frag) Y

func (f Frag) Y() int16

Y axis position of the object for the fragment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL