Link Search Menu Expand Document

Game_Vehicle.d overview


Table of contents


utils

Game_Vehicle (class)

Game_Vehicle

The game object class for a vehicle.

Signature

export declare class Game_Vehicle {
  constructor(type: VehicleType)
}

initMembers (method)

Signature

initMembers(): void

isBoat (method)

Signature

isBoat(): boolean

isShip (method)

Signature

isShip(): boolean

isAirship (method)

Signature

isAirship(): boolean

resetDirection (method)

Signature

resetDirection(): void

initMoveSpeed (method)

Signature

initMoveSpeed(): void

vehicle (method)

Signature

vehicle(): import("../data").DataVehicle | null

loadSystemSettings (method)

Signature

loadSystemSettings(): void

refresh (method)

Signature

refresh(): void

setLocation (method)

Signature

setLocation(mapId: MapID, x: number, y: number): void

pos (method)

Signature

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

isMapPassable (method)

Signature

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

getOn (method)

Signature

getOn(): void

getOff (method)

Signature

getOff(): void

setBgm (method)

Signature

setBgm(bgm: DataAudio): void

playBgm (method)

Signature

playBgm(): void

syncWithPlayer (method)

Signature

syncWithPlayer(): void

screenY (method)

Signature

screenY(): number

shadowX (method)

Signature

shadowX(): number

shadowY (method)

Signature

shadowY(): number

shadowOpacity (method)

Signature

shadowOpacity(): number

canMove (method)

Signature

canMove(): boolean

update (method)

Signature

update(): void

updateAirship (method)

Signature

updateAirship(): void

updateAirshipAltitude (method)

Signature

updateAirshipAltitude(): void

maxAltitude (method)

Signature

maxAltitude(): number

isLowest (method)

Signature

isLowest(): boolean

isHighest (method)

Signature

isHighest(): boolean

isTakeoffOk (method)

Signature

isTakeoffOk(): boolean

isLandOk (method)

Signature

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

_type (property)

Signature

_type: VehicleType

_mapId (property)

Signature

_mapId: number

_altitude (property)

Signature

_altitude: number

_driving (property)

Signature

_driving: boolean

_bgm (property)

Signature

_bgm: DataAudio | null