#include <players.h>
Inheritance diagram for Spy:

Public Methods | |
| bool | IsSpy (void) |
| int | NumTokens (TokenType) |
| Move | TakeTurn (void) |
| MoveList & | GetHistory (void) |
|
|
Reimplemented from Player. Definition at line 80 of file players.h. References Player::History.
00080 { return History; }
|
|
|
Reimplemented from Player. Definition at line 21 of file players.c. References True.
00021 { return True; }
|
|
|
Reimplemented from Player. Definition at line 78 of file players.h. References Invalid, and TokenType.
00078 { return Invalid; }
|
|
|
Reimplemented from Player. Definition at line 61 of file players.c. References MoveList::Append(), Player::ChooseMove(), Player::History, NullMove, and Player::Pos.
00062 {
00063 Move squamosal; // Squamosal = "crest" of a ceratopsian dinosaur
00064 Move Rostrum; // Rostrum = bony "beak" of a ceratopsian dinosaur
00065
00066 UI.BeginTurn (*this);
00067 squamosal = ChooseMove ();
00068 if (squamosal != NullMove)
00069 {
00070 Move* theMove = new Move;
00071 *theMove = squamosal;
00072 History.Append (theMove);
00073 Pos = theMove -> Node; // update Pos
00074 if (theRules.ShowSpy ())
00075 UI.RevealSpy (*this, squamosal);
00076 else
00077 UI.SpyTurn (squamosal, theRules.CurrentTurn());
00078 }
00079 return squamosal;
00080 }
|
1.2.15