ScummVM API documentation
Mohawk::RivenSimpleCommand Class Reference

#include <riven_scripts.h>

Inheritance diagram for Mohawk::RivenSimpleCommand:
Mohawk::RivenCommand

Public Types

typedef Common::Array< uint16 > ArgumentArray
 

Public Member Functions

 RivenSimpleCommand (MohawkEngine_Riven *vm, RivenCommandType type, const ArgumentArray &arguments)
 
void dump (byte tabs) override
 
void execute () override
 
RivenCommandType getType () const override
 
- Public Member Functions inherited from Mohawk::RivenCommand
 RivenCommand (MohawkEngine_Riven *vm)
 
virtual void applyCardPatches (uint32 globalId, int scriptType, uint16 hotspotId)
 

Static Public Member Functions

static RivenSimpleCommandcreateFromStream (MohawkEngine_Riven *vm, RivenCommandType type, Common::ReadStream *stream)
 

Additional Inherited Members

- Protected Attributes inherited from Mohawk::RivenCommand
MohawkEngine_Riven_vm
 

Detailed Description

A simple Command

Simple commands have a type and a list of arguments. The operation to be executed when running the command depends on the type.

Member Function Documentation

◆ dump()

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

Print details about the command to standard output

Implements Mohawk::RivenCommand.

◆ execute()

void Mohawk::RivenSimpleCommand::execute ( )
overridevirtual

Execute the command

Implements Mohawk::RivenCommand.

◆ getType()

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

Get the command's type

Implements Mohawk::RivenCommand.


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