Link Search Menu Expand Document

Game_Character.d overview


Table of contents


utils

Game_Character (class)

Game_Character

The superclass of Game_Player, Game_Follower, GameVehicle, and Game_Event.

Signature

export declare class Game_Character {
  constructor()
}

initMembers (method)

Signature

initMembers(): void

memorizeMoveRoute (method)

Signature

memorizeMoveRoute(): void

restoreMoveRoute (method)

Signature

restoreMoveRoute(): void

isMoveRouteForcing (method)

Signature

isMoveRouteForcing(): boolean

setMoveRoute (method)

Signature

setMoveRoute(moveRoute: MoveRoute): void

forceMoveRoute (method)

Signature

forceMoveRoute(moveRoute: MoveRoute): void

updateStop (method)

Signature

updateStop(): void

updateRoutineMove (method)

Signature

updateRoutineMove(): void

processMoveCommand (method)

Signature

processMoveCommand(command: DataCommand): void

deltaXFrom (method)

Signature

deltaXFrom(x: number): number

deltaYFrom (method)

Signature

deltaYFrom(y: number): number

moveRandom (method)

Signature

moveRandom(): void

moveTowardCharacter (method)

Signature

moveTowardCharacter(character: Game_Character): void

moveAwayFromCharacter (method)

Signature

moveAwayFromCharacter(character: Game_Character): void

turnTowardCharacter (method)

Signature

turnTowardCharacter(character: Game_Character): void

turnAwayFromCharacter (method)

Signature

turnAwayFromCharacter(character: Game_Character): void

turnTowardPlayer (method)

Signature

turnTowardPlayer(): void

turnAwayFromPlayer (method)

Signature

turnAwayFromPlayer(): void

moveTowardPlayer (method)

Signature

moveTowardPlayer(): void

moveAwayFromPlayer (method)

Signature

moveAwayFromPlayer(): void

moveForward (method)

Signature

moveForward(): void

moveBackward (method)

Signature

moveBackward(): void

processRouteEnd (method)

Signature

processRouteEnd(): void

advanceMoveRouteIndex (method)

Signature

advanceMoveRouteIndex(): void

turnRight90 (method)

Signature

turnRight90(): void

turnLeft90 (method)

Signature

turnLeft90(): void

turn180 (method)

Signature

turn180(): void

turnRightOrLeft90 (method)

Signature

turnRightOrLeft90(): void

turnRandom (method)

Signature

turnRandom(): void

swap (method)

Signature

swap(character: Game_Character): void

findDirectionTo (method)

Signature

findDirectionTo(goalX: number, goalY: number): 0 | 2 | 4 | 8 | 6

searchLimit (method)

Signature

searchLimit(): number

_moveRouteForcing (property)

Signature

_moveRouteForcing: boolean

_moveRoute (property)

Signature

_moveRoute: MoveRoute | null

_moveRouteIndex (property)

Signature

_moveRouteIndex: number

_originalMoveRoute (property)

Signature

_originalMoveRoute: MoveRoute | null

_originalMoveRouteIndex (property)

Signature

_originalMoveRouteIndex: number

_waitCount (property)

Signature

_waitCount: number

PathFindingNode (interface)

Signature

export interface PathFindingNode {
  parent: PathFindingNode | null
  x: number
  y: number
  g: number
  f: number
}