Planeshift
Public Member Functions | Public Attributes

NpcTerm Class Reference

A phrase recognized by the dialog system. More...

#include <dictionary.h>

List of all members.

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

NpcTermsynonym
 Pointer to a synonym term.
csString term
 The recognized phrase/term.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

const char* NpcTerm::GetInterleavedHypernym ( size_t  which)
bool NpcTerm::IsNoun ( )
void NpcTerm::Print ( )

Dump the term to stdout.


Member Data Documentation

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.


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