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

playrwin.h

Go to the documentation of this file.
00001 /*************************************************************************
00002 *   FILE: playrwin.h
00003 * AUTHOR: CAL / SRW
00004 * DATE: 30 April 1993/1 May 1993
00005 * PURPOSE:
00006 *   Declares the Player Information window, a component of the UI.
00007 **************************************************************************/
00008 
00009 #ifndef _PLAYRWIN_H
00010 #define _PLAYRWIN_H
00011 
00012 #include "window.h"
00013 #include "players.h"
00014 
00015 const char PlayerWinTitle [] = "Player Information";
00016 const int PlayerWinXDim = 221;
00017 const int PlayerWinYDim = 75;
00018 
00019 
00020 class PlayerWindow : public Window
00021 {
00022   char* Name;
00023   int Tokens [NTokenTypes], RoundNum, Address;
00024   void DrawInfo (void); // make sure there is data; if (Tokens==Invalid)
00025       // then player is a spy.  don't show tokens.
00026 public:
00027   PlayerWindow (void);
00028 
00029   void Draw (void);
00030   Message Dispatch (Message&) { return NullMsg; }
00031 
00032   void Update (Player&, int); // get info from player, Clear(), DrawInfo()
00033             // and RoundNum.
00034   void Clear () { Client().Erase(); Client().Clear(); }
00035 };
00036 
00037 
00038 
00039 #endif

Generated on Sun Jul 6 23:07:16 2003 for Scotland Yard by doxygen1.2.15