summaryrefslogtreecommitdiffstats
path: root/kue/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'kue/player.h')
-rw-r--r--kue/player.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/kue/player.h b/kue/player.h
new file mode 100644
index 00000000..ad324db1
--- /dev/null
+++ b/kue/player.h
@@ -0,0 +1,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