Skip to content

Game_Interpreter

Kind: global class

  • Game_Interpreter
    • new Game_Interpreter()
    • .initialize(depth)
    • .checkOverflow()
    • .clear()
    • .setup(list, eventId)
    • .eventId() ⇒ number
    • .isOnCurrentMap() ⇒ boolean
    • .setupReservedCommonEvent() ⇒ boolean
    • .isRunning() ⇒ boolean
    • .update()
    • .updateChild() ⇒ boolean
    • .updateWait() ⇒ boolean
    • .updateWaitCount() ⇒ boolean
    • .updateWaitMode() ⇒ boolean
    • .setWaitMode(waitMode)
    • .wait(duration)
    • .fadeSpeed() ⇒ number
    • .executeCommand() ⇒ boolean
    • .checkFreeze() ⇒ boolean
    • .terminate()
    • .skipBranch()
    • .currentCommand() ⇒ object
    • .nextEventCode() ⇒ number
    • .iterateActorId(param, callback)
    • .iterateActorIndex(param, callback)

new Game_Interpreter()

游戏解释器类,用于解释和执行事件指令
Game interpreter class for interpreting and executing event commands


Game_Interpreter.initialize(depth)

初始化解释器
Initialize interpreter

Kind: static method of Game_Interpreter

ParamTypeDescription
depthnumber深度 / Depth

Game_Interpreter.checkOverflow()

检测溢出
Check overflow

Kind: static method of Game_Interpreter


Game_Interpreter.clear()

清除解释器
Clear interpreter

Kind: static method of Game_Interpreter


Game_Interpreter.setup(list, eventId)

设置解释器
Setup interpreter

Kind: static method of Game_Interpreter

ParamTypeDescription
listArray指令列表 / Command list
eventIdnumber事件 ID / Event ID

Game_Interpreter.eventId() ⇒ number

获取事件 ID
Get event ID

Kind: static method of Game_Interpreter
Returns: number - 事件 ID / Event ID


Game_Interpreter.isOnCurrentMap() ⇒ boolean

检查是否在当前地图
Check if on current map

Kind: static method of Game_Interpreter
Returns: boolean - 是否在当前地图 / Whether on current map


Game_Interpreter.setupReservedCommonEvent() ⇒ boolean

设置储存的公共事件
Setup reserved common event

Kind: static method of Game_Interpreter
Returns: boolean - 是否设置成功 / Whether setup successful


Game_Interpreter.isRunning() ⇒ boolean

检查是否正在运行
Check if running

Kind: static method of Game_Interpreter
Returns: boolean - 是否运行 / Whether running


Game_Interpreter.update()

更新解释器
Update interpreter

Kind: static method of Game_Interpreter


Game_Interpreter.updateChild() ⇒ boolean

更新子解释器
Update child interpreter

Kind: static method of Game_Interpreter
Returns: boolean - 是否更新中 / Whether updating


Game_Interpreter.updateWait() ⇒ boolean

更新等待状态
Update wait state

Kind: static method of Game_Interpreter
Returns: boolean - 是否等待中 / Whether waiting


Game_Interpreter.updateWaitCount() ⇒ boolean

更新等待计数
Update wait count

Kind: static method of Game_Interpreter
Returns: boolean - 是否等待中 / Whether waiting


Game_Interpreter.updateWaitMode() ⇒ boolean

更新等待模式
Update wait mode

Kind: static method of Game_Interpreter
Returns: boolean - 是否等待中 / Whether waiting


Game_Interpreter.setWaitMode(waitMode)

设置等待模式
Set wait mode

Kind: static method of Game_Interpreter

ParamTypeDescription
waitModestring等待模式 / Wait mode

Game_Interpreter.wait(duration)

等待指定时间
Wait for specified time

Kind: static method of Game_Interpreter

ParamTypeDescription
durationnumber等待时间 / Wait duration

Game_Interpreter.fadeSpeed() ⇒ number

获取渐变速度
Get fade speed

Kind: static method of Game_Interpreter
Returns: number - 渐变速度 / Fade speed


Game_Interpreter.executeCommand() ⇒ boolean

执行指令
Execute command

Kind: static method of Game_Interpreter
Returns: boolean - 是否继续执行 / Whether to continue


Game_Interpreter.checkFreeze() ⇒ boolean

检测冻结状态
Check freeze state

Kind: static method of Game_Interpreter
Returns: boolean - 是否冻结 / Whether frozen


Game_Interpreter.terminate()

结束解释器
Terminate interpreter

Kind: static method of Game_Interpreter


Game_Interpreter.skipBranch()

跳出分支
Skip branch

Kind: static method of Game_Interpreter


Game_Interpreter.currentCommand() ⇒ object

获取当前指令
Get current command

Kind: static method of Game_Interpreter
Returns: object - 当前指令 / Current command


Game_Interpreter.nextEventCode() ⇒ number

获取下一个事件码
Get next event code

Kind: static method of Game_Interpreter
Returns: number - 下一个事件码 / Next event code


Game_Interpreter.iterateActorId(param, callback)

循环遍历角色 ID
Iterate through actor IDs

Kind: static method of Game_Interpreter

ParamTypeDescription
paramnumber参数 / Parameter
callbackfunction回调函数 / Callback function

Game_Interpreter.iterateActorIndex(param, callback)

循环遍历角色索引
Iterate through actor index

Kind: static method of Game_Interpreter

ParamTypeDescription
paramnumber参数 / Parameter
callbackfunction回调函数 / Callback function

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新