From 9cc46300dba5c1e53a26415507c4d08addfd89eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 10 Nov 2020 01:35:03 +0100 Subject: warnings etc --- labb4/Junk.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'labb4/Junk.h') diff --git a/labb4/Junk.h b/labb4/Junk.h index c520e9f..e8c028f 100644 --- a/labb4/Junk.h +++ b/labb4/Junk.h @@ -17,17 +17,17 @@ public: /* * Draws this junk onto the given QGraphicsScene. */ - void draw(QGraphicsScene* scene) const; + void draw(QGraphicsScene* scene) const override; - void moveTowards(const Unit& u); + void moveTowards(const Unit& u) override; - bool attacks(const Unit& u) const; + bool attacks(const Unit& u) const override; - unsigned int getCollisionCount() const; + unsigned int getCollisionCount() const override; - bool alive() const; + bool alive() const override; - Junk *clone() const; + Junk *clone() const override; }; #endif // JUNK_H -- cgit v1.2.1