Class in reactor_objects_map.js
Game_Vehicle
31 public functions in 6 groups · show internal (_) functions
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. |
Setup & Creation
initialize
method sourceGame_Vehicle.prototype.initialize(type)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceGame_Vehicle.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
initMoveSpeed
method sourceGame_Vehicle.prototype.initMoveSpeed()
Initializes the move speed. (Same as the RPG Maker MZ method of this name.)
loadSystemSettings
method sourceGame_Vehicle.prototype.loadSystemSettings()
Loads the system settings. (Same as the RPG Maker MZ method of this name.)
Getting Information
getOn
method sourceGame_Vehicle.prototype.getOn()
Gets the on. (Same as the RPG Maker MZ method of this name.)
getOff
method sourceGame_Vehicle.prototype.getOff()
Gets the off. (Same as the RPG Maker MZ method of this name.)
maxAltitude
method sourceGame_Vehicle.prototype.maxAltitude()
The maximum altitude. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isBoat
method sourceGame_Vehicle.prototype.isBoat()
Whether it is boat. (Same as the RPG Maker MZ method of this name.)
isShip
method sourceGame_Vehicle.prototype.isShip()
Whether it is ship. (Same as the RPG Maker MZ method of this name.)
isAirship
method sourceGame_Vehicle.prototype.isAirship()
Whether it is airship. (Same as the RPG Maker MZ method of this name.)
isMapPassable
method sourceGame_Vehicle.prototype.isMapPassable(x, y, d)
Whether it is map passable. (Same as the RPG Maker MZ method of this name.)
canMove
method sourceGame_Vehicle.prototype.canMove()
Whether it can move. (Same as the RPG Maker MZ method of this name.)
isLowest
method sourceGame_Vehicle.prototype.isLowest()
Whether it is lowest. (Same as the RPG Maker MZ method of this name.)
isHighest
method sourceGame_Vehicle.prototype.isHighest()
Whether it is highest. (Same as the RPG Maker MZ method of this name.)
isTakeoffOk
method sourceGame_Vehicle.prototype.isTakeoffOk()
Whether it is takeoff ok. (Same as the RPG Maker MZ method of this name.)
isLandOk
method sourceGame_Vehicle.prototype.isLandOk(x, y, d)
Whether it is land ok. (Same as the RPG Maker MZ method of this name.)
Actions
resetDirection
method sourceGame_Vehicle.prototype.resetDirection()
Resets the direction. (Same as the RPG Maker MZ method of this name.)
setLocation
method sourceGame_Vehicle.prototype.setLocation(mapId, x, y)
Sets the location. (Same as the RPG Maker MZ method of this name.)
setBgm
method sourceGame_Vehicle.prototype.setBgm(bgm)
Sets the bgm. (Same as the RPG Maker MZ method of this name.)
playBgm
method sourceGame_Vehicle.prototype.playBgm()
Plays the bgm. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
refresh
method sourceGame_Vehicle.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
syncWithPlayer
method sourceGame_Vehicle.prototype.syncWithPlayer()
Sync with player. (Same as the RPG Maker MZ method of this name.)
update
method sourceGame_Vehicle.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateAirship
method sourceGame_Vehicle.prototype.updateAirship()
Updates the airship each frame. (Same as the RPG Maker MZ method of this name.)
updateAirshipAltitude
method sourceGame_Vehicle.prototype.updateAirshipAltitude()
Updates the airship altitude each frame. (Same as the RPG Maker MZ method of this name.)
Other
vehicle
method sourceGame_Vehicle.prototype.vehicle()
Vehicle. (Same as the RPG Maker MZ method of this name.)
pos
method sourceGame_Vehicle.prototype.pos(x, y)
Pos. (Same as the RPG Maker MZ method of this name.)
screenY
method sourceGame_Vehicle.prototype.screenY()
Screen y. (Same as the RPG Maker MZ method of this name.)
shadowX
method sourceGame_Vehicle.prototype.shadowX()
Shadow x. (Same as the RPG Maker MZ method of this name.)
shadowY
method sourceGame_Vehicle.prototype.shadowY()
Shadow y. (Same as the RPG Maker MZ method of this name.)
shadowOpacity
method sourceGame_Vehicle.prototype.shadowOpacity()
Shadow opacity. (Same as the RPG Maker MZ method of this name.)