summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/tank.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/errorstate/tank.h')
-rw-r--r--examples/statemachine/errorstate/tank.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/statemachine/errorstate/tank.h b/examples/statemachine/errorstate/tank.h
deleted file mode 100644
index 49c5daf..0000000
--- a/examples/statemachine/errorstate/tank.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef TANK_H
-#define TANK_H
-
-#include <QObject>
-#include <QLineF>
-
-class Tank: public QObject
-{
- Q_OBJECT
- Q_PROPERTY(qreal direction READ direction)
- Q_PROPERTY(qreal distanceToObstacle READ distanceToObstacle)
-public:
- Tank(QObject *parent = 0) : QObject(parent) {}
-
- virtual qreal direction() const = 0;
- virtual qreal distanceToObstacle() const = 0;
-
-signals:
- void collision(const QLineF &collidedLine) const;
- void actionCompleted();
- void tankSpotted(qreal otherTankDirection, qreal distance);
-
-public slots:
- virtual void moveForwards(qreal length) = 0;
- virtual void moveBackwards(qreal length) = 0;
- virtual void turn(qreal degrees) = 0;
- virtual void stop() = 0;
- virtual void fireCannon() = 0;
-};
-
-#endif