ScummVM API documentation
Mohawk::RivenSwitchCommand Class Reference

#include <riven_scripts.h>

Inheritance diagram for Mohawk::RivenSwitchCommand:
Mohawk::RivenCommand

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 RivenSwitchCommandcreateFromStream (MohawkEngine_Riven *vm, Common::ReadStream *stream)
 

Additional Inherited Members

- Protected Attributes inherited from Mohawk::RivenCommand
MohawkEngine_Riven_vm
 

Detailed Description

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.

Member Function Documentation

◆ dump()

void Mohawk::RivenSwitchCommand::dump ( byte  tabs)
overridevirtual

Print details about the command to standard output

Implements Mohawk::RivenCommand.

◆ execute()

void Mohawk::RivenSwitchCommand::execute ( )
overridevirtual

Execute the command

Implements Mohawk::RivenCommand.

◆ getType()

RivenCommandType Mohawk::RivenSwitchCommand::getType ( ) const
overridevirtual

Get the command's type

Implements Mohawk::RivenCommand.

◆ applyCardPatches()

void Mohawk::RivenSwitchCommand::applyCardPatches ( uint32  globalId,
int  scriptType,
uint16  hotspotId 
)
overridevirtual

Apply card patches for the command's sub-scripts

Reimplemented from Mohawk::RivenCommand.


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