blob: ad324db1e35d3c6be2ba988a5cf91b710f8b10ef (
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
|
#ifndef _PLAYER_H
#define _PLAYER_H
#include <tqstring.h>
#include <tqobject.h>
#include "circle.h"
#include "point.h"
#include "vector.h"
#include "billiard.h"
class KuePlayer : public TQObject {
public:
KuePlayer(TQString name = TQString::null) { _name = name; }
~KuePlayer() {}
virtual const TQString &name() { return _name; }
void setName(const TQString &name) { _name = name; }
// Rules' functions
// Place the billiard 'b' at a user defined location
virtual void placeBilliard(int index, const KueBilliard &b, double line, TQObject *_dest = 0, const char *slot = 0) = 0;
// Take a shot on billiard with index 'billiard_index'
virtual void takeShot(int billiard_index, bool forward_only = false, TQObject *_dest = 0, const char *slot = 0) = 0;
protected:
TQString _name;
};
#endif
|