Planeshift
Classes | Public Member Functions | Protected Attributes

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>

List of all members.

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.
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 119 of file psnpcdialog.h.


Constructor & Destructor Documentation

DialogHistory::DialogHistory ( ) [inline]

Definition at line 131 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

Current location in circular buffer.

Definition at line 129 of file psnpcdialog.h.

Definition at line 128 of file psnpcdialog.h.


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