2 * SmallRobot.h 07/12/04
4 * Draw a small 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>
18 #include <mcl_laser.h>
20 class SmallRobot : public QObject, public QGraphicsItem
26 SmallRobot(QColor color);
28 QRectF boundingRect() const;
29 QPainterPath shape() const;
30 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
36 void setParent(QWidget *parent);
38 struct mcl_laser_state *mclPart;
41 QSizeF playgroundSize;
45 void robotMovedSignal();
48 void mousePressEvent(QGraphicsSceneMouseEvent *event);
49 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);