summaryrefslogtreecommitdiffstats
path: root/kenolaba/Spy.h
blob: e66fd5ebb6f0aedc6ae37ee83cdd18995f4a78e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Class Spion
 *
 * Josef Weidendorfer, 10/97
 */

#ifndef _SPY_H_
#define _SPY_H_


#include <layout.h>
#include "Board.h"


class BoardWidget;
class TQLabel;

class Spy: public TQWidget
{
  Q_OBJECT
  TQ_OBJECT

public:
  Spy(Board&);
  ~Spy() {}
	
  enum { BoardCount = 5 };

  void clearActBoards();

  void keyPressEvent(TQKeyEvent *e);

public slots:	
  void update(int,int,Move&,bool);
  void updateBest(int,int,Move&,bool);
  void nextStep();
	
private:
  bool next;
  Board &board;
  TQBoxLayout *top;
  BoardWidget *actBoard[BoardCount], *bestBoard[BoardCount];
  TQLabel *actLabel[BoardCount], *bestLabel[BoardCount];
};



#endif /* _SPION_H_ */