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

Public Methods | |
| Player (char *name, int color) | |
| Player (char *name, int color, PosType pos) | |
| virtual | ~Player (void) |
| PosType | Position (void) |
| PosType | GetPosition (void) |
| virtual bool | IsSpy (void) |
| char * | GetName (void) |
| int | GetColor (void) |
| MoveList & | GetHistory (void) |
| virtual int | NumTokens (TokenType) |
| virtual Move | TakeTurn (void) |
Protected Methods | |
| virtual Move | ChooseMove (void) |
| Player (void) | |
Protected Attributes | |
| PosType | Pos |
| MoveList | History |
Private Attributes | |
| char | Name [NameSize] |
| int | Color |
|
|
Definition at line 35 of file players.h.
00035 { }
|
|
||||||||||||
|
Definition at line 23 of file players.c. References Color, Name, NameSize, and Pos.
|
|
||||||||||||||||
|
Definition at line 30 of file players.c. References Color, Name, NameSize, Pos, and PosType.
|
|
|
Definition at line 40 of file players.h.
00040 { }
|
|
|
Reimplemented in Human, ComputerDetective, and ComputerSpy. Definition at line 34 of file players.h. References NullMove. Referenced by Spy::TakeTurn(), and Detective::TakeTurn().
00034 { return NullMove; }
|
|
|
Definition at line 46 of file players.h. References Color. Referenced by UserInterface::EndTurn(), UserInterface::FlashNodes(), UserInterface::GetPlayerMove(), and UserInterface::ShowAllPlayers().
00046 { return Color; }
|
|
|
Reimplemented in Spy. Definition at line 47 of file players.h.
00047 { return History; }
|
|
|
Definition at line 45 of file players.h. References Name. Referenced by UserInterface::AnnounceWin(), UserInterface::NoLegalMoves(), UserInterface::RevealSpy(), and PlayerWindow::Update().
00045 { return Name; }
|
|
|
Definition at line 43 of file players.h. Referenced by Rules::GetLegalMoves(), and PlayerWindow::Update().
00043 { return Pos; }
|
|
|
Reimplemented in Detective, and Spy. Definition at line 20 of file players.c. References False. Referenced by UserInterface::AnnounceWin(), and UserInterface::GetPlayerMove().
00020 { return False; }
|
|
|
Reimplemented in Detective, and Spy. Definition at line 49 of file players.h. References TokenType. Referenced by Rules::GetLegalMoves(), and PlayerWindow::Update().
00049 { return 0; }
|
|
|
Definition at line 42 of file players.h. Referenced by UserInterface::BeginTurn(), UserInterface::EndTurn(), UserInterface::FlashNodes(), UserInterface::GetPlayerMove(), and UserInterface::ShowAllPlayers().
00042 { return Pos; }
|
|
|
Reimplemented in Detective, and Spy. Definition at line 50 of file players.h. References NullMove.
00050 { return NullMove; }
|
|
|
|
|
|
Definition at line 33 of file players.h. Referenced by Spy::GetHistory(), and Spy::TakeTurn(). |
|
|
|
|
|
Definition at line 32 of file players.h. Referenced by GetPosition(), Player(), Position(), Spy::TakeTurn(), and Detective::TakeTurn(). |
1.2.15