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

Move Struct Reference

#include <moves.h>

List of all members.

Public Methods

 Move (void)
 Move (int s, int n, int t)
int operator== (Move &m)
int operator!= (Move &m)
 ~Move (void)

Public Attributes

int Source
int Node
byte Trans
Move * Next


Constructor & Destructor Documentation

Move::Move void    [inline]
 

Definition at line 35 of file moves.h.

References Node, Source, and Trans.

00035 { Source = Node = Trans = 0;  Next = 0; }

Move::Move int    s,
int    n,
int    t
[inline]
 

Definition at line 36 of file moves.h.

References Node, Source, and Trans.

00037     { Source = s; Node = n; Trans = t; Next = 0; }

Move::~Move void    [inline]
 

Definition at line 42 of file moves.h.

00042 { delete Next; }


Member Function Documentation

int Move::operator!= Move &    m [inline]
 

Definition at line 40 of file moves.h.

References Node, Source, and Trans.

00041     { return ((Source!=m.Source)||(Node!=m.Node)||(Trans!=m.Trans)); }

int Move::operator== Move &    m [inline]
 

Definition at line 38 of file moves.h.

References Node, Source, and Trans.

00039     { return ((Source==m.Source)&&(Node==m.Node)&&(Trans==m.Trans)); }


Member Data Documentation

Move* Move::Next
 

Definition at line 34 of file moves.h.

Referenced by MoveList::Append(), ComputerSpy::ChooseMove(), ComputerDetective::ChooseMove(), MoveList::Insert(), and MoveList::Next().

int Move::Node
 

Definition at line 32 of file moves.h.

Referenced by UserInterface::ComputePossTokens(), MapWindow::DisableNodes(), MapWindow::EnableNodes(), UserInterface::EndTurn(), Move(), operator!=(), operator==(), and Detective::TakeTurn().

int Move::Source
 

Definition at line 31 of file moves.h.

Referenced by Move(), operator!=(), and operator==().

byte Move::Trans
 

Definition at line 33 of file moves.h.

Referenced by UserInterface::ComputePossTokens(), Move(), operator!=(), operator==(), UserInterface::RevealSpy(), UserInterface::ShowSpyMoves(), UserInterface::SpyTurn(), and Detective::TakeTurn().


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