summaryrefslogtreecommitdiffstats
path: root/labb4/Robot.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-10 00:34:54 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-10 00:34:54 +0100
commitb92072fc45676f9fe4669905f38a2aa3d6b92c4d (patch)
tree93abd1a0090433432febfa6b7cc20163ba5c08cc /labb4/Robot.h
parent6a72f2f15c9f39b2a851b955b9b87abede8d0257 (diff)
downloadtddd86-b92072fc45676f9fe4669905f38a2aa3d6b92c4d.tar.gz
vector<Robot *>, bool alive(), correct inheritance
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