ScummVM API documentation
Mohawk::RivenCommand Class Referenceabstract

#include <riven_scripts.h>

Inheritance diagram for Mohawk::RivenCommand:
Mohawk::RivenSimpleCommand Mohawk::RivenStackChangeCommand Mohawk::RivenSwitchCommand Mohawk::RivenTimerCommand

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
 

Detailed Description

An abstract command

Commands are unit operations part of a script

Member Function Documentation

◆ dump()

virtual void Mohawk::RivenCommand::dump ( byte  tabs)
pure virtual

Print details about the command to standard output

Implemented in Mohawk::RivenTimerCommand, Mohawk::RivenStackChangeCommand, Mohawk::RivenSwitchCommand, and Mohawk::RivenSimpleCommand.

◆ execute()

virtual void Mohawk::RivenCommand::execute ( )
pure virtual

◆ getType()

virtual RivenCommandType Mohawk::RivenCommand::getType ( ) const
pure virtual

◆ applyCardPatches()

virtual void Mohawk::RivenCommand::applyCardPatches ( uint32  globalId,
int  scriptType,
uint16  hotspotId 
)
inlinevirtual

Apply card patches for the command's sub-scripts

Reimplemented in Mohawk::RivenSwitchCommand.


The documentation for this class was generated from the following file: