really return verb name

svn-id: r11012
This commit is contained in:
Gregory Montoir 2003-10-30 18:19:03 +00:00
parent 4db6235db7
commit 4c7b847950

View File

@ -126,13 +126,20 @@ public:
return _verb == VERB_NONE;
}
int inventoryItem() const {
if (isInventory()) {
return _verb - VERB_INV_FIRST;
}
return -1;
}
VerbEnum value() const {
return _verb;
}
const char* name() const {
if (_verb > 0 && _verb < 13) {
_verbName[_verb];
return _verbName[_verb];
}
return NULL;
}