It looks like you're new here. If you want to get involved, click one of these buttons!
std::map<const orxSTRING, int> cellNames;
LogicalLevelEntries::LogicalLevelEntries(){
cellNames["EmptyCell"] = 0;
cellNames["WhiteMouseCell"] = 1;
cellNames["BlackMouseCell"] = 2;
cellNames["UnusedCell"] = 3;
}
orxLOG("name: %s mapping: %i", orxObject_GetName(nextCell), cellNames[orxObject_GetName(nextCell)]);
Comments
My guess is that you'll have to wrap the C/orx strings with a C++ std::string in order for this to work.
Out of curiosity, why don't you use the config system to store your info instead?
But I'll be doing another tutorial shortly to explain the "official" config way of doing it.