Link Search Menu Expand Document

Game_Player.d overview


Table of contents


utils

Game_Player (class)

Game_Player

The game object class for the player. It contains event starting // determinants and map scrolling functions.

Signature

export declare class Game_Player {
  constructor()
}

initMembers (method)

Signature

initMembers(): void

clearTransferInfo (method)

Signature

clearTransferInfo(): void

followers (method)

Signature

followers(): Game_Followers

refresh (method)

Signature

refresh(): void

isStopping (method)

Signature

isStopping(): boolean

reserveTransfer (method)

Signature

reserveTransfer(mapId: MapID, x: number, y: number, d?: Direction, fadeType?: number): void

setupForNewGame (method)

Signature

setupForNewGame(): void

requestMapReload (method)

Signature

requestMapReload(): void

isTransferring (method)

Signature

isTransferring(): boolean

newMapId (method)

Signature

newMapId(): number

fadeType (method)

Signature

fadeType(): number | undefined

performTransfer (method)

Signature

performTransfer(): void

isMapPassable (method)

Signature

isMapPassable(x: number, y: number, d: Direction): boolean

vehicle (method)

Signature

vehicle(): import("./Game_Vehicle").Game_Vehicle

isInBoat (method)

Signature

isInBoat(): boolean

isInShip (method)

Signature

isInShip(): boolean

isInAirship (method)

Signature

isInAirship(): boolean

isInVehicle (method)

Signature

isInVehicle(): boolean

isNormal (method)

Signature

isNormal(): boolean

isDashing (method)

Signature

isDashing(): boolean

isDebugThrough (method)

Signature

isDebugThrough(): boolean

isCollided (method)

Signature

isCollided(x: number, y: number): boolean

centerX (method)

Signature

centerX(): number

centerY (method)

Signature

centerY(): number

center (method)

Signature

center(x: number, y: number): void

locate (method)

Signature

locate(x: number, y: number): void

increaseSteps (method)

Signature

increaseSteps(): void

makeEncounterCount (method)

Signature

makeEncounterCount(): void

makeEncounterTroopId (method)

Signature

makeEncounterTroopId(): number

meetsEncounterConditions (method)

Signature

meetsEncounterConditions(encounter: DataEncounter): boolean

executeEncounter (method)

Signature

executeEncounter(): boolean

startMapEvent (method)

Signature

startMapEvent(x: number, y: number, triggers: number[], normal: boolean): void

moveByInput (method)

Signature

moveByInput(): void

canMove (method)

Signature

canMove(): boolean

getInputDirection (method)

Signature

getInputDirection(): Direction

executeMove (method)

Signature

executeMove(direction: Direction): void

update (method)

Signature

update(sceneActive?: boolean): void

updateDashing (method)

Signature

updateDashing(): void

isDashButtonPressed (method)

Signature

isDashButtonPressed(): boolean

updateScroll (method)

Signature

updateScroll(lastScrolledX: number, lastScrolledY: number): void

updateVehicle (method)

Signature

updateVehicle(): void

updateVehicleGetOn (method)

Signature

updateVehicleGetOn(): void

updateVehicleGetOff (method)

Signature

updateVehicleGetOff(): void

updateNonmoving (method)

Signature

updateNonmoving(wasMoving: boolean, sceneActive?: boolean): void

triggerAction (method)

Signature

triggerAction(): boolean

triggerButtonAction (method)

Signature

triggerButtonAction(): boolean

triggerTouchAction (method)

Signature

triggerTouchAction(): boolean

triggerTouchActionD1 (method)

Signature

triggerTouchActionD1(x1: number, y1: number): boolean

triggerTouchActionD2 (method)

Signature

triggerTouchActionD2(x2: number, y2: number): boolean

triggerTouchActionD3 (method)

Signature

triggerTouchActionD3(x2: number, y2: number): boolean

updateEncounterCount (method)

Signature

updateEncounterCount(): void

canEncounter (method)

Signature

canEncounter(): boolean

encounterProgressValue (method)

Signature

encounterProgressValue(): number

checkEventTriggerHere (method)

Signature

checkEventTriggerHere(triggers: number[]): void

checkEventTriggerThere (method)

Signature

checkEventTriggerThere(triggers: number[]): void

checkEventTriggerTouch (method)

Signature

checkEventTriggerTouch(x: number, y: number): void

canStartLocalEvents (method)

Signature

canStartLocalEvents(): boolean

getOnOffVehicle (method)

Signature

getOnOffVehicle(): boolean

getOnVehicle (method)

Signature

getOnVehicle(): boolean

getOffVehicle (method)

Signature

getOffVehicle(): boolean

forceMoveForward (method)

Signature

forceMoveForward(): void

isOnDamageFloor (method)

Signature

isOnDamageFloor(): boolean

moveStraight (method)

Signature

moveStraight(d: Direction): void

moveDiagonally (method)

Signature

moveDiagonally(horz: Direction, vert: Direction): void

jump (method)

Signature

jump(xPlus: number, yPlus: number): void

showFollowers (method)

Signature

showFollowers(): void

hideFollowers (method)

Signature

hideFollowers(): void

gatherFollowers (method)

Signature

gatherFollowers(): void

areFollowersGathering (method)

Signature

areFollowersGathering(): boolean

areFollowersGathered (method)

Signature

areFollowersGathered(): boolean

_vehicleType (property)

Signature

_vehicleType: VehicleType

_vehicleGettingOn (property)

Signature

_vehicleGettingOn: boolean

_vehicleGettingOff (property)

Signature

_vehicleGettingOff: boolean

_dashing (property)

Signature

_dashing: boolean

_needsMapReload (property)

Signature

_needsMapReload: boolean

_transferring (property)

Signature

_transferring: boolean

_newMapId (property)

Signature

_newMapId: number

_newX (property)

Signature

_newX: number

_newY (property)

Signature

_newY: number

_newDirection (property)

Signature

_newDirection: 0 | 2 | 1 | 4 | 6 | 3 | 7 | 8 | 9 | undefined

_fadeType (property)

Signature

_fadeType: number | undefined

_followers (property)

Signature

_followers: Game_Followers

_encounterCount (property)

Signature

_encounterCount: number