Planeshift
|
A phrase recognized by the dialog system. More...
#include <dictionary.h>
Public Member Functions | |
const char * | GetInterleavedHypernym (size_t which) |
bool | IsNoun () |
NpcTerm (const char *term) | |
Constructor for the term. | |
void | Print () |
Dump the term to stdout. | |
~NpcTerm () | |
Public Attributes | |
NpcTerm * | synonym |
Pointer to a synonym term. | |
csString | term |
The recognized phrase/term. |
A phrase recognized by the dialog system.
Each term can hold a pointer to a synonym e.g. hello = greetings or a more general term e.g. "apple" --> "fruit".
Definition at line 202 of file dictionary.h.
NpcTerm::NpcTerm | ( | const char * | term | ) | [inline] |
Constructor for the term.
Definition at line 231 of file dictionary.h.
NpcTerm::~NpcTerm | ( | ) | [inline] |
Definition at line 238 of file dictionary.h.
const char* NpcTerm::GetInterleavedHypernym | ( | size_t | which | ) |
bool NpcTerm::IsNoun | ( | ) |
void NpcTerm::Print | ( | ) |
Dump the term to stdout.
Pointer to a synonym term.
If nonzero, phrase is translated to 'synonym'
Phrases that have 'synonym' should have no 'moreGeneral' term, because 'moreGeneral' of their 'synonym' is used instead of it
Definition at line 225 of file dictionary.h.
csString NpcTerm::term |
The recognized phrase/term.
Definition at line 215 of file dictionary.h.