Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MessageQueue Class Reference

#include <MessageQueue.h>

List of all members.

Public Member Functions

 MessageQueue (int max)
void newMessage (int playerid, const char *msg)
void newMessage (msgstruct msg)
int deleteMessages (int id)
msgstruct getNextMessage ()
int getNumMessages ()
bool isEmpty ()
int delMessageFrom (int id)

Private Attributes

Messagemsg
int num
int max


Detailed Description

Definition at line 6 of file MessageQueue.h.


Constructor & Destructor Documentation

MessageQueue::MessageQueue int  max  ) 
 

Definition at line 3 of file MessageQueue.cpp.

References msg, and num.


Member Function Documentation

int MessageQueue::deleteMessages int  id  ) 
 

int MessageQueue::delMessageFrom int  id  ) 
 

Definition at line 47 of file MessageQueue.cpp.

References Message::isFrom(), and msg.

Here is the call graph for this function:

msgstruct MessageQueue::getNextMessage  ) 
 

Definition at line 27 of file MessageQueue.cpp.

References msgstruct::msg, msg, num, and msgstruct::playerid.

Referenced by Gne::getNextMessage().

int MessageQueue::getNumMessages  ) 
 

Definition at line 22 of file MessageQueue.cpp.

References num.

bool MessageQueue::isEmpty  ) 
 

Definition at line 40 of file MessageQueue.cpp.

References num.

Referenced by Gne::isMessagePending().

void MessageQueue::newMessage msgstruct  msg  ) 
 

Definition at line 15 of file MessageQueue.cpp.

References msgstruct::msg, num, and msgstruct::playerid.

void MessageQueue::newMessage int  playerid,
const char msg
 

Definition at line 9 of file MessageQueue.cpp.

References num.

Referenced by Gne::aPlayer(), Gne::clientThread(), and Gne::sendChatMsg().


Member Data Documentation

int MessageQueue::max [private]
 

Definition at line 10 of file MessageQueue.h.

Message* MessageQueue::msg [private]
 

Definition at line 8 of file MessageQueue.h.

Referenced by delMessageFrom(), getNextMessage(), and MessageQueue().

int MessageQueue::num [private]
 

Definition at line 9 of file MessageQueue.h.

Referenced by getNextMessage(), getNumMessages(), isEmpty(), MessageQueue(), and newMessage().


Generated on Sun Jun 5 15:50:16 2005 for Defacto by  doxygen 1.4.3