File: counter.hh

package info (click to toggle)
xmahjongg 3.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 1,317
  • sloc: cpp: 5,619; ansic: 3,451; sh: 330; makefile: 162
file content (32 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (7)
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
#ifndef COUNTER_HH
#define COUNTER_HH
#include "swwidget.hh"
#include "game.hh"
class Panel;

class FancyCounter: public SwWidget {
  
  int _digits;
  int _value;
  
 public:
  
  FancyCounter(SwWindow *, int);
  
  void set_value(int v)				{ _value = v; draw(); }
  void draw();
  
};

class FancyTileCounter: public FancyCounter, public GameHooks {

 public:

  FancyTileCounter(SwWindow *);

  void start_hook(Game *);
  void move_made_hook(Game *);

};

#endif