lvlobj

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CyberspaceExtra

func CyberspaceExtra(triple object.Triple, data []byte) *interpreters.Instance

CyberspaceExtra returns an interpreter instance that handles the level object extra data of the specified object - in cybperspace.

func ForCyberspace

func ForCyberspace(triple object.Triple, data []byte) *interpreters.Instance

ForCyberspace returns an interpreter instance that handles the level class data of the specified object - in cyberspace.

func ForRealWorld

func ForRealWorld(triple object.Triple, data []byte) *interpreters.Instance

ForRealWorld returns an interpreter instance that handles the level class data of the specified object - in real world.

func FromBinaryCodedDecimal

func FromBinaryCodedDecimal(bcd uint16) (value uint16)

FromBinaryCodedDecimal converts given 4-digit BCD value into an integer.

func RealWorldExtra

func RealWorldExtra(triple object.Triple, data []byte) *interpreters.Instance

RealWorldExtra returns an interpreter instance that handles the level object extra data of the specified object - in real world.

func ToBinaryCodedDecimal

func ToBinaryCodedDecimal(value uint16) (bcd uint16)

ToBinaryCodedDecimal converts given integer value to a 4-digit BCD value.

Types

type InterpreterFactory

type InterpreterFactory func(object.Triple, []byte) *interpreters.Instance

InterpreterFactory returns an interpreter instance according to a specific object triple.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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