Planeshift
DialogHistory Class Reference

This class right now holds a simple circular MRU list of responses, so the npc can tell if he is getting the same question over and over. More...

#include <psnpcdialog.h>

Classes

struct  DialogHistoryEntry
 

Public Member Functions

void AddToHistory (int playerID, int responseID, csTicks when)
 
 DialogHistory ()
 
bool EverSaid (int playerID, int responseID, csTicks &howLongAgo, int &times)
 

Protected Attributes

int counter
 Current location in circular buffer. More...
 
csArray< DialogHistoryEntryhistory
 

Detailed Description

This class right now holds a simple circular MRU list of responses, so the npc can tell if he is getting the same question over and over.

Definition at line 124 of file psnpcdialog.h.

Constructor & Destructor Documentation

DialogHistory::DialogHistory ( )
inline

Definition at line 136 of file psnpcdialog.h.

Member Function Documentation

void DialogHistory::AddToHistory ( int  playerID,
int  responseID,
csTicks  when 
)
bool DialogHistory::EverSaid ( int  playerID,
int  responseID,
csTicks &  howLongAgo,
int times 
)

Member Data Documentation

int DialogHistory::counter
protected

Current location in circular buffer.

Definition at line 134 of file psnpcdialog.h.

csArray<DialogHistoryEntry> DialogHistory::history
protected

Definition at line 133 of file psnpcdialog.h.


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