diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:13:02 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:23:24 +0300 |
commit | 04b5a62b8d9f5ff8240f25361046f2a5d58e8262 (patch) | |
tree | 98b126454cdf68d544e138d7e8b31d5fd45b72c2 /kue/player.h | |
parent | 83ba00b7e569587d50383ff06a70148042ca780e (diff) | |
download | tdegames-feat/kue.tar.gz tdegames-feat/kue.zip |
Add Kue billiards gamefeat/kue
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kue/player.h')
-rw-r--r-- | kue/player.h | 32 |
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 |