Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • JSONTemplate
    • Link

Implements

  • ILink

Index

Constructors

constructor

  • new Link(emu: IMemory, math: IMath): Link

Properties

actorUUID

actorUUID: string = 'Link'

Private anim_data_addr

anim_data_addr: number = 0x600000

Private anim_raw_data_addr

anim_raw_data_addr: any = ...

Private boots_addr

boots_addr: number = ...

Private emulator

emulator: IMemory

Private instance

instance: any = ...

isTransitionActor

isTransitionActor: boolean = false

jsonFields

jsonFields: string[] = ...

Private mask_addr

mask_addr: number = ...

Private math

math: IMath

Private pos_addr

pos_addr: number = ...

position

position: IPosition

Private rot_addr

rot_addr: number = ...

rotation

rotation: IRotation

Private shield_addr

shield_addr: number = ...

Private sound_addr

sound_addr: number = ...

Private sound_addr2

sound_addr2: number = ...

Private state2_addr

state2_addr: number = ...

Private state_addr

state_addr: number = ...

Private sword_addr

sword_addr: number = ...

Private tunic_addr

tunic_addr: number = ...

Accessors

actorID

  • get actorID(): number

actorType

  • get actorType(): ActorCategory

anim_data

  • get anim_data(): Buffer
  • set anim_data(buf: Buffer): void

boots

  • get boots(): Boots
  • set boots(boots: Boots): void

current_sound_id

  • get current_sound_id(): number
  • set current_sound_id(s: number): void

exists

  • get exists(): boolean

health

  • get health(): number
  • set health(h: number): void

mask

  • get mask(): Mask
  • set mask(mask: Mask): void

objectTableIndex

  • get objectTableIndex(): number

pos

  • get pos(): Buffer
  • set pos(pos: Buffer): void

projected_position

  • get projected_position(): Vector3
  • set projected_position(vec: Vector3): void

rawStateValue

  • get rawStateValue(): number

redeadFreeze

  • get redeadFreeze(): number
  • set redeadFreeze(f: number): void

renderingFlags

  • get renderingFlags(): number
  • set renderingFlags(flags: number): void

room

  • get room(): number
  • set room(r: number): void

rot

  • get rot(): Buffer
  • set rot(rot: Buffer): void

shield

  • get shield(): Shield
  • set shield(shield: Shield): void

soundEffect

  • get soundEffect(): number
  • set soundEffect(s: number): void

state

  • get state(): LinkState

state2

  • get state2(): LinkState2

sword

  • get sword(): Sword
  • set sword(sword: Sword): void

tunic

  • get tunic(): Tunic
  • set tunic(tunic: Tunic): void

variable

  • get variable(): number

Methods

bitCount16

  • bitCount16(value: number): number

bitCount32

  • bitCount32(value: number): number

bitCount8

  • bitCount8(value: number): number

bitCountBuffer

  • bitCountBuffer(buf: Buffer, off: number, len: number): number

dereferencePointer

  • dereferencePointer(addr: number): number

destroy

  • destroy(): void

getRdramBuffer

  • getRdramBuffer(): ArrayBuffer

get_anim_frame

  • get_anim_frame(): number

get_anim_id

  • get_anim_id(): number

invalidateCachedCode

  • invalidateCachedCode(): void

memoryDebugLogger

  • memoryDebugLogger(bool: boolean): void

rdramRead16

  • rdramRead16(addr: number): number

rdramRead32

  • rdramRead32(addr: number): number

rdramRead8

  • rdramRead8(addr: number): number

rdramReadBit8

  • rdramReadBit8(addr: number, bitoffset: number): boolean

rdramReadBits8

  • rdramReadBits8(addr: number): Buffer

rdramReadBitsBuffer

  • rdramReadBitsBuffer(addr: number, bytes: number): Buffer

rdramReadBuffer

  • rdramReadBuffer(addr: number, size: number): Buffer

rdramReadF32

  • rdramReadF32(addr: number): number

rdramReadPtr16

  • rdramReadPtr16(addr: number, offset: number): number

rdramReadPtr32

  • rdramReadPtr32(addr: number, offset: number): number

rdramReadPtr8

  • rdramReadPtr8(addr: number, offset: number): number

rdramReadPtrBit8

  • rdramReadPtrBit8(addr: number, offset: number, bitoffset: number): boolean

rdramReadPtrBits8

  • rdramReadPtrBits8(addr: number, offset: number): Buffer

rdramReadPtrBitsBuffer

  • rdramReadPtrBitsBuffer(addr: number, offset: number, bytes: number): Buffer

rdramReadPtrBuffer

  • rdramReadPtrBuffer(addr: number, offset: number, size: number): Buffer

rdramReadPtrF32

  • rdramReadPtrF32(addr: number, offset: number): number

rdramReadPtrS16

  • rdramReadPtrS16(addr: number, offset: number): number

rdramReadPtrS32

  • rdramReadPtrS32(addr: number, offset: number): number

rdramReadPtrS8

  • rdramReadPtrS8(addr: number, offset: number): number

rdramReadS16

  • rdramReadS16(addr: number): number

rdramReadS32

  • rdramReadS32(addr: number): number

rdramReadS8

  • rdramReadS8(addr: number): number

rdramWrite16

  • rdramWrite16(addr: number, value: number): void

rdramWrite32

  • rdramWrite32(addr: number, value: number): void

rdramWrite8

  • rdramWrite8(addr: number, value: number): void

rdramWriteBit8

  • rdramWriteBit8(addr: number, bitoffset: number, bit: boolean): void

rdramWriteBits8

  • rdramWriteBits8(addr: number, buf: Buffer): void

rdramWriteBitsBuffer

  • rdramWriteBitsBuffer(addr: number, buf: Buffer): void

rdramWriteBuffer

  • rdramWriteBuffer(addr: number, buf: Buffer): void

rdramWriteF32

  • rdramWriteF32(addr: number, value: number): void

rdramWritePtr16

  • rdramWritePtr16(addr: number, offset: number, value: number): void

rdramWritePtr32

  • rdramWritePtr32(addr: number, offset: number, value: number): void

rdramWritePtr8

  • rdramWritePtr8(addr: number, offset: number, value: number): void

rdramWritePtrBit8

  • rdramWritePtrBit8(addr: number, offset: number, bitoffset: number, bit: boolean): void

rdramWritePtrBits8

  • rdramWritePtrBits8(addr: number, offset: number, buf: Buffer): void

rdramWritePtrBitsBuffer

  • rdramWritePtrBitsBuffer(addr: number, offset: number, buf: Buffer): void

rdramWritePtrBuffer

  • rdramWritePtrBuffer(addr: number, offset: number, buf: Buffer): void

rdramWritePtrF32

  • rdramWritePtrF32(addr: number, offset: number, value: number): void

toJSON

  • toJSON(): any
  • Returns any

Generated using TypeDoc