summaryrefslogtreecommitdiffstats
path: root/labb4/Robot.h
diff options
context:
space:
mode:
Diffstat (limited to 'labb4/Robot.h')
-rw-r--r--labb4/Robot.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/labb4/Robot.h b/labb4/Robot.h
index 9e2c075..8b445dc 100644
--- a/labb4/Robot.h
+++ b/labb4/Robot.h
@@ -12,9 +12,13 @@
class Robot : public Unit {
public:
Robot();
- void draw(QGraphicsScene* scene) const;
+ virtual void draw(QGraphicsScene* scene) const;
+
+ virtual void moveTowards(const Unit& u);
virtual unsigned int getCollisionCount() const;
+
+ virtual bool alive() const;
};
#endif // ROBOT_H