You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/kue/player.h

33 lines
810 B
C++

#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