Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Message Class Reference

#include <message.h>

List of all members.

Public Types

enum  Message_t {
  MSG_UNDEFINED = 0, MSG_NEW_DEMONSTRATOR, MSG_NEW_ROBBER, MSG_KILL_AGENT,
  MSG_AGENT_DIE
}

Public Member Functions

 Message (Message_t type, Agent *sender=NULL)
Messageoperator<< (int value)
Messageoperator<< (unsigned int value)
Messageoperator<< (double value)
Messageoperator<< (const std::string &value)
Message_t getType () const
AgentgetSender () const
MessagesetSender (Agent *sender)
unsigned int size () const
Anyoperator[] (unsigned int index)
const Anyoperator[] (unsigned int index) const

Private Attributes

Agentm_sender
Message_t m_type
std::vector< Anyarguments

Friends

std::ostream & operator<< (std::ostream &os, const Message &msg)


Detailed Description

The agents send "messages" to each other
Author:
Victor STINNER

Definition at line 39 of file message.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2