Class in reactor_objects_map.js

Game_Vehicle

31 public functions in 6 groups · show internal (_) functions

Everything here is tracked by Game Objects: the party, the map, its events.

Familiar territory. Game_Vehicle keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 4

initialize() Sets up a new instance.
initMembers() Initializes the members.
initMoveSpeed() Initializes the move speed.
loadSystemSettings() Loads the system settings.

Getting Information 3

getOn() Gets the on.
getOff() Gets the off.
maxAltitude() The maximum altitude.

Checks (True / False) 9

isBoat() Whether it is boat.
isShip() Whether it is ship.
isAirship() Whether it is airship.
isMapPassable() Whether it is map passable.
canMove() Whether it can move.
isLowest() Whether it is lowest.
isHighest() Whether it is highest.
isTakeoffOk() Whether it is takeoff ok.
isLandOk() Whether it is land ok.

Actions 4

resetDirection() Resets the direction.
setLocation() Sets the location.
setBgm() Sets the bgm.
playBgm() Plays the bgm.

Updating & Drawing 5

refresh() Refresh.
syncWithPlayer() Sync with player.
update() Update.
updateAirship() Updates the airship each frame.
updateAirshipAltitude() Updates the airship altitude each frame.

Other 6

vehicle() Vehicle.
pos() Pos.
screenY() Screen y.
shadowX() Shadow x.
shadowY() Shadow y.
shadowOpacity() Shadow opacity.

Setup & Creation

initialize

method source
Game_Vehicle.prototype.initialize(type)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

initMembers

method source
Game_Vehicle.prototype.initMembers()

Initializes the members. (Same as the RPG Maker MZ method of this name.)

initMoveSpeed

method source
Game_Vehicle.prototype.initMoveSpeed()

Initializes the move speed. (Same as the RPG Maker MZ method of this name.)

loadSystemSettings

method source
Game_Vehicle.prototype.loadSystemSettings()

Loads the system settings. (Same as the RPG Maker MZ method of this name.)

Getting Information

getOn

method source
Game_Vehicle.prototype.getOn()

Gets the on. (Same as the RPG Maker MZ method of this name.)

getOff

method source
Game_Vehicle.prototype.getOff()

Gets the off. (Same as the RPG Maker MZ method of this name.)

maxAltitude

method source
Game_Vehicle.prototype.maxAltitude()

The maximum altitude. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isBoat

method source
Game_Vehicle.prototype.isBoat()

Whether it is boat. (Same as the RPG Maker MZ method of this name.)

isShip

method source
Game_Vehicle.prototype.isShip()

Whether it is ship. (Same as the RPG Maker MZ method of this name.)

isAirship

method source
Game_Vehicle.prototype.isAirship()

Whether it is airship. (Same as the RPG Maker MZ method of this name.)

isMapPassable

method source
Game_Vehicle.prototype.isMapPassable(x, y, d)

Whether it is map passable. (Same as the RPG Maker MZ method of this name.)

canMove

method source
Game_Vehicle.prototype.canMove()

Whether it can move. (Same as the RPG Maker MZ method of this name.)

isLowest

method source
Game_Vehicle.prototype.isLowest()

Whether it is lowest. (Same as the RPG Maker MZ method of this name.)

isHighest

method source
Game_Vehicle.prototype.isHighest()

Whether it is highest. (Same as the RPG Maker MZ method of this name.)

isTakeoffOk

method source
Game_Vehicle.prototype.isTakeoffOk()

Whether it is takeoff ok. (Same as the RPG Maker MZ method of this name.)

isLandOk

method source
Game_Vehicle.prototype.isLandOk(x, y, d)

Whether it is land ok. (Same as the RPG Maker MZ method of this name.)

Actions

resetDirection

method source
Game_Vehicle.prototype.resetDirection()

Resets the direction. (Same as the RPG Maker MZ method of this name.)

setLocation

method source
Game_Vehicle.prototype.setLocation(mapId, x, y)

Sets the location. (Same as the RPG Maker MZ method of this name.)

setBgm

method source
Game_Vehicle.prototype.setBgm(bgm)

Sets the bgm. (Same as the RPG Maker MZ method of this name.)

playBgm

method source
Game_Vehicle.prototype.playBgm()

Plays the bgm. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

refresh

method source
Game_Vehicle.prototype.refresh()

Refresh. (Same as the RPG Maker MZ method of this name.)

syncWithPlayer

method source
Game_Vehicle.prototype.syncWithPlayer()

Sync with player. (Same as the RPG Maker MZ method of this name.)

update

method source
Game_Vehicle.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

updateAirship

method source
Game_Vehicle.prototype.updateAirship()

Updates the airship each frame. (Same as the RPG Maker MZ method of this name.)

updateAirshipAltitude

method source
Game_Vehicle.prototype.updateAirshipAltitude()

Updates the airship altitude each frame. (Same as the RPG Maker MZ method of this name.)

Other

vehicle

method source
Game_Vehicle.prototype.vehicle()

Vehicle. (Same as the RPG Maker MZ method of this name.)

pos

method source
Game_Vehicle.prototype.pos(x, y)

Pos. (Same as the RPG Maker MZ method of this name.)

screenY

method source
Game_Vehicle.prototype.screenY()

Screen y. (Same as the RPG Maker MZ method of this name.)

shadowX

method source
Game_Vehicle.prototype.shadowX()

Shadow x. (Same as the RPG Maker MZ method of this name.)

shadowY

method source
Game_Vehicle.prototype.shadowY()

Shadow y. (Same as the RPG Maker MZ method of this name.)

shadowOpacity

method source
Game_Vehicle.prototype.shadowOpacity()

Shadow opacity. (Same as the RPG Maker MZ method of this name.)