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 >
Wrap
C/C++ Source or Header
|
1992-02-27
|
1KB
|
37 lines
// This may look like C code, but it is really -*- C++ -*-
// Module : PlayerView.h Version 1.2
// LastSCCS : 2/26/92 16:38:51
// LastEdit : "Thu Nov 7 16:34:58 1991"
// Description :
// Author :
// Copyright : GMD Schloss Birlinghoven
#ifndef Playerview_h
#define Playerview_h
class PlayerView : public SleuthView {
friend class SleuthMouseDownCommand;
friend class FieldSelector;
friend class ColorSelector;
friend class ShapeSelector;
friend class ValueSelector;
public:
PlayerView(SleuthDocument *document, Player *player);
Player *GetPlayer()
{ return player; }
void UpdateField(Field *field);
void DrawSelected(Boolean state);
protected:
void button_press( int code, int repetition, int x, int y );
virtual void draw(int count, int x, int y,
Dimension width, Dimension height );
protected:
void DrawTable();
void DrawPlayerName(Boolean reverse = False);
private:
Player *player;
};
#endif