#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) |
Name lists provide bidirectional association between an object's name and its id
Common::String Mohawk::RivenNameList::getName | ( | uint16 | nameID | ) | const |
Get the name of an object using its id
int16 Mohawk::RivenNameList::getNameId | ( | const Common::String & | name | ) | const |
Get the id of an object using its name
This query is case insensitive.
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.