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/localplayer.h

41 lines
960 B
C++

#ifndef _LOCALPLAYER_H
#define _LOCALPLAYER_H
#include <tqstring.h>
#include <tqcolor.h>
#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