#ifndef _LOCALPLAYER_H #define _LOCALPLAYER_H #include #include #include "player.h" #include "interface.h" #include "main.h" class KueLocalPlayer : public KuePlayer { TQ_OBJECT public: KueLocalPlayer(TQString name = TQString::null, TQColor = TQt::white); ~KueLocalPlayer() {} // Rules' functions void placeBilliard(int index, const KueBilliard &b, double line, TQObject *dest = 0, const char *slot = 0); void takeShot(int billiard, bool forward_only = false, TQObject *dest = 0, const char *slot = 0); protected slots: // Called by the interface when the user has decided on a cue location void billiardPlaced(point &location); // Called by the interface when the user is deciding on a cue location void previewBilliardPlace(point &location); void shotTaken(vector &velocity); protected: void callBack(); TQObject *_dest; const char *_dest_slot; TQColor _color; double _radius; int _index; }; #endif