#include <riven_scripts.h>
Public Member Functions | |
void | dump (byte tabs) override |
void | execute () override |
RivenCommandType | getType () const override |
void | applyCardPatches (uint32 globalId, int scriptType, uint16 hotspotId) override |
Public Member Functions inherited from Mohawk::RivenCommand | |
RivenCommand (MohawkEngine_Riven *vm) | |
Static Public Member Functions | |
static RivenSwitchCommand * | createFromStream (MohawkEngine_Riven *vm, Common::ReadStream *stream) |
Additional Inherited Members | |
Protected Attributes inherited from Mohawk::RivenCommand | |
MohawkEngine_Riven * | _vm |
A switch branch command
Switch commands have a variable id and a list of branches. Each branch associates a value to a script. The branch matching the variable's value is executed, if not found an optional default branch can be executed.
|
overridevirtual |
Print details about the command to standard output
Implements Mohawk::RivenCommand.
|
overridevirtual |
Execute the command
Implements Mohawk::RivenCommand.
|
overridevirtual |
Get the command's type
Implements Mohawk::RivenCommand.
|
overridevirtual |
Apply card patches for the command's sub-scripts
Reimplemented from Mohawk::RivenCommand.