4 * Draw and move a robot on the playground.
6 * Copyright: (c) 2007 CTU Dragons
7 * CTU FEE - Department of Control Engineering
8 * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
15 #include <QGraphicsItem>
16 #include <QGraphicsLineItem>
20 class Robot : public QObject, public QGraphicsItem
23 Q_INTERFACES(QGraphicsItem);
25 Robot(const QString &aText, const QPen &pen = QPen(), const QBrush &brush = QBrush());
27 QRectF boundingRect() const;
28 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
29 void moveRobot(double x, double y, double angle);
31 void mySetVisible(bool show);
32 void setVidle(int value);