ScummVM API documentation
Mohawk::RivenNameList Class Reference

#include <riven_stack.h>

Public Member Functions

 RivenNameList (MohawkEngine_Riven *vm, uint16 id)
 
Common::String getName (uint16 nameID) const
 
int16 getNameId (const Common::String &name) const
 
void registerName (uint16 nameId, const Common::String &name)
 

Detailed Description

Name lists provide bidirectional association between an object's name and its id

Member Function Documentation

◆ getName()

Common::String Mohawk::RivenNameList::getName ( uint16  nameID) const

Get the name of an object using its id

◆ getNameId()

int16 Mohawk::RivenNameList::getNameId ( const Common::String name) const

Get the id of an object using its name

This query is case insensitive.

◆ registerName()

void Mohawk::RivenNameList::registerName ( uint16  nameId,
const Common::String name 
)

Add a name id => name mapping

The implementation of the method is currently limited and does not allow retrieving an id from the name.


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