Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Message Struct Reference

#include <messages.h>

List of all members.

Public Methods

 Message (void)
 Message (unsigned o, unsigned c)
 Message (unsigned o, unsigned c, int a)
 Message (unsigned o, unsigned c, int a, int b)
bool operator== (Message &)
bool operator!= (Message &msg)

Public Attributes

unsigned origin
unsigned code
int d1
int d2
char str [25]


Constructor & Destructor Documentation

Message::Message void    [inline]
 

Definition at line 27 of file messages.h.

References code, d1, d2, origin, and str.

00027 { origin = code = d1 = d2 = 0; str [0] = 0; }

Message::Message unsigned    o,
unsigned    c
[inline]
 

Definition at line 28 of file messages.h.

References code, d1, d2, origin, and str.

00029     { origin = o; code = c; d1 = d2 = 0; str [0] = 0; }

Message::Message unsigned    o,
unsigned    c,
int    a
[inline]
 

Definition at line 30 of file messages.h.

References code, d1, d2, origin, and str.

00031     { origin = o; code = c; d1 = a; d2 = 0; str [0] = 0; }

Message::Message unsigned    o,
unsigned    c,
int    a,
int    b
[inline]
 

Definition at line 32 of file messages.h.

References code, d1, d2, origin, and str.

00033     { origin = o; code = c; d1 = a; d2 = b; str [0] = 0; }


Member Function Documentation

bool Message::operator!= Message &    msg [inline]
 

Definition at line 35 of file messages.h.

00035 { return (bool) (! (*this == msg)); }

bool Message::operator== Message &   
 

Definition at line 18 of file messages.c.

References code, d1, d2, False, origin, str, and True.

00019 {
00020   if ((origin == msg.origin)  &&
00021       (code == msg.code)  &&
00022       (d1 == msg.d1)    &&
00023       (d2 == msg.d2)    &&
00024       (!strcmp (str, msg.str)))
00025     return True;
00026   else
00027     return False;
00028 }


Member Data Documentation

unsigned Message::code
 

Definition at line 23 of file messages.h.

Referenced by Nodes::command_msg(), CheckBox::command_msg(), Group::Dispatch(), PushButton::Dispatch(), MSMouse::Flush(), UserInterface::GetPlayerMove(), Message(), MessageWin(), Nodes::mouse_msg(), CheckBox::mouse_msg(), operator==(), UserInterface::ShowSpyMoves(), UserInterface::TransPop(), UserInterface::UFWOOM(), MSMouse::WaitForAnyEvent(), Keybd::WaitForAnyEvent(), and MSMouse::WaitForEvent().

int Message::d1
 

Definition at line 24 of file messages.h.

Referenced by Nodes::command_msg(), CheckBox::command_msg(), Group::Dispatch(), Display::Dispatch(), PushButton::Dispatch(), Keybd::Event(), UserInterface::GetPlayerMove(), Message(), Nodes::mouse_msg(), CheckBox::mouse_msg(), operator==(), UserInterface::TransPop(), and UserInterface::UFWOOM().

int Message::d2
 

Definition at line 24 of file messages.h.

Referenced by Group::Dispatch(), Display::Dispatch(), PushButton::Dispatch(), Keybd::Event(), Message(), Nodes::mouse_msg(), CheckBox::mouse_msg(), operator==(), UserInterface::TransPop(), and UserInterface::UFWOOM().

unsigned Message::origin
 

Definition at line 22 of file messages.h.

Referenced by Nodes::Dispatch(), Group::Dispatch(), Display::Dispatch(), CheckBox::Dispatch(), PushButton::Dispatch(), UserInterface::GetPlayerMove(), Message(), operator==(), UserInterface::TransPop(), and UserInterface::UFWOOM().

char Message::str[25]
 

Definition at line 25 of file messages.h.

Referenced by Message(), and operator==().


The documentation for this struct was generated from the following files:
Generated on Sun Jul 6 23:07:17 2003 for Scotland Yard by doxygen1.2.15