#include <riven_scripts.h>
Public Member Functions | |
RivenCommand (MohawkEngine_Riven *vm) | |
virtual void | dump (byte tabs)=0 |
virtual void | execute ()=0 |
virtual RivenCommandType | getType () const =0 |
virtual void | applyCardPatches (uint32 globalId, int scriptType, uint16 hotspotId) |
Protected Attributes | |
MohawkEngine_Riven * | _vm |
An abstract command
Commands are unit operations part of a script
|
pure virtual |
Print details about the command to standard output
Implemented in Mohawk::RivenTimerCommand, Mohawk::RivenStackChangeCommand, Mohawk::RivenSwitchCommand, and Mohawk::RivenSimpleCommand.
|
pure virtual |
Execute the command
Implemented in Mohawk::RivenTimerCommand, Mohawk::RivenStackChangeCommand, Mohawk::RivenSwitchCommand, and Mohawk::RivenSimpleCommand.
|
pure virtual |
Get the command's type
Implemented in Mohawk::RivenTimerCommand, Mohawk::RivenStackChangeCommand, Mohawk::RivenSwitchCommand, and Mohawk::RivenSimpleCommand.
|
inlinevirtual |
Apply card patches for the command's sub-scripts
Reimplemented in Mohawk::RivenSwitchCommand.