home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gina15.zip / demos / sleuth / PlayerView.h < prev    next >
C/C++ Source or Header  |  1992-02-27  |  1KB  |  37 lines

  1. // This may look like C code, but it is really -*- C++ -*-
  2.  
  3. //   Module      : PlayerView.h   Version 1.2
  4. //   LastSCCS    : 2/26/92  16:38:51
  5. //   LastEdit    : "Thu Nov  7 16:34:58 1991"
  6. //   Description : 
  7. //   Author      : 
  8. //   Copyright   : GMD Schloss Birlinghoven
  9.  
  10. #ifndef Playerview_h
  11. #define Playerview_h
  12.  
  13. class PlayerView : public SleuthView {
  14.     friend class SleuthMouseDownCommand;
  15.     friend class FieldSelector;
  16.     friend class ColorSelector;
  17.     friend class ShapeSelector;
  18.     friend class ValueSelector;
  19.   public:
  20.     PlayerView(SleuthDocument *document, Player *player);
  21.     Player *GetPlayer()
  22.     { return player; }
  23.     void UpdateField(Field *field);
  24.     void DrawSelected(Boolean state);
  25.   protected:
  26.     void button_press( int code, int repetition, int x, int y );
  27.     virtual void draw(int count, int x, int y,
  28.               Dimension width, Dimension height );
  29.   protected:
  30.     void DrawTable();
  31.     void DrawPlayerName(Boolean reverse = False);
  32.   private:
  33.     Player *player;
  34. };
  35.  
  36. #endif
  37.