ScummVM API documentation
MutationOfJB::CameFromCommandParser Class Reference
Inheritance diagram for MutationOfJB::CameFromCommandParser:
MutationOfJB::ConditionalCommandParser MutationOfJB::CommandParser

Public Member Functions

bool parse (const Common::String &line, ScriptParseContext &parseCtx, Command *&command) override
 
- Public Member Functions inherited from MutationOfJB::ConditionalCommandParser
 ConditionalCommandParser (bool firstHash=false)
 
void transition (ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser) override
 
void finish (ScriptParseContext &parseCtx) override
 

Additional Inherited Members

- Protected Attributes inherited from MutationOfJB::ConditionalCommandParser
Common::Queue< char > _tags
 

Member Function Documentation

◆ parse()

bool MutationOfJB::CameFromCommandParser::parse ( const Common::String line,
ScriptParseContext parseCtx,
Command *&  command 
)
overridevirtual

Parses the specified line and possibly returns a Command instance.

Parameters
lineLine to parse.
parseCtxParse context.
commandOutput parameter for newly created command.
Returns
True if the line has been successfully parsed by this parser, false otherwise.
Note
You may return true and set command to nullptr. That means the line has been successfully parsed, but no command is needed.

Implements MutationOfJB::CommandParser.


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