Class: Game_Temp

Game_Temp()

new Game_Temp()

The game object class for temporary data that is not included in save data. Use as global variable $gameTemp
Properties:
Name Type Description
_isPlaytest Boolean
_commonEventId Number
_destinationX Number
_destinationY Number

Methods

clearCommonEvent()

Clears the current reserved common event.

clearDestination()

Clears the destination of movement for the player.

destinationX() → {Number}

Returns the x coordinate of the destination.
Returns:
Type
Number

destinationY() → {Number}

Returns the y coordinate of the destination.
Returns:
Type
Number

isCommonEventReserved() → {Boolean}

Returns true if a common event has been reserved.
Returns:
Type
Boolean

isDestinationValid() → {Boolean}

Determines if the destination for the player to move to is valid.
Returns:
Type
Boolean

isPlaytest() → {Boolean}

Determines if the game is in Play Test mode.
Returns:
Type
Boolean

reserveCommonEvent(commonEventId)

Reserves the given commonEventId to be processed later.
Parameters:
Name Type Description
commonEventId Number

reservedCommonEvent() → {*}

Returns common event data from the database.
Returns:
Type
*

setDestination(x, y)

Sets the destination of the player for movement.
Parameters:
Name Type Description
x Number
y Number