Classes Game_Temp - hikipuro/rpgmakermv_ref GitHub Wiki

Game_Temp クラス

[クラス一覧 / rpg_objects.js]

(ver.1.6.2)

セーブデータに含まれない、一時データを扱う

  • グローバル変数の $gameTemp からインスタンスにアクセスする

定義場所: rpg_objects.js

関連項目

フィールド

名前 初期値 説明
_isPlaytest boolean Utils.isOptionValid('test') テストモード
_commonEventId number 0 予約されたコモンイベントの番号
_destinationX number null 目的地の X 座標
_destinationY number null 目的地の Y 座標

メソッド

名前 説明
initialize 初期化
isPlaytest テストモードで実行されているか確認する
reserveCommonEvent コモンイベントを予約する
clearCommonEvent コモンイベントの予約をやめる
isCommonEventReserved コモンイベントが予約されているか確認する
reservedCommonEvent 予約されたコモンイベントを取得する
setDestination 目的地を設定する
clearDestination 目的地をクリアする
isDestinationValid 目的地が有効か確認する
destinationX 目的地の X 座標を取得する
destinationY 目的地の Y 座標を取得する

initialize

定義: initialize()

初期化。コンストラクタから呼び出される


isPlaytest

定義: isPlaytest()

テストモードで実行されているか確認する

戻り値

(boolean)

  • テストモード: true
  • それ以外: false

reserveCommonEvent

定義: reserveCommonEvent(commonEventId)

コモンイベントを予約する


clearCommonEvent

定義: clearCommonEvent()

コモンイベントの予約をやめる


isCommonEventReserved

定義: isCommonEventReserved()

コモンイベントが予約されているか確認する


reservedCommonEvent

定義: reservedCommonEvent()

予約されたコモンイベントを取得する


setDestination

定義: setDestination(x, y)

目的地を設定する


clearDestination

定義: clearDestination()

目的地をクリアする


isDestinationValid

定義: isDestinationValid()

目的地が有効か確認する

戻り値

(boolean)

  • 有効な目的地: true
  • 無効な目的地: false

destinationX

定義: destinationX()

目的地の X 座標を取得する

戻り値

(number) 目的地の X 座標


destinationY

定義: destinationY()

目的地の Y 座標を取得する

戻り値

(number) 目的地の Y 座標