diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 00:34:54 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 00:34:54 +0100 |
| commit | b92072fc45676f9fe4669905f38a2aa3d6b92c4d (patch) | |
| tree | 93abd1a0090433432febfa6b7cc20163ba5c08cc /labb4/Junk.h | |
| parent | 6a72f2f15c9f39b2a851b955b9b87abede8d0257 (diff) | |
| download | tddd86-b92072fc45676f9fe4669905f38a2aa3d6b92c4d.tar.gz | |
vector<Robot *>, bool alive(), correct inheritance
Diffstat (limited to 'labb4/Junk.h')
| -rw-r--r-- | labb4/Junk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/labb4/Junk.h b/labb4/Junk.h index a4d6cca..730a766 100644 --- a/labb4/Junk.h +++ b/labb4/Junk.h @@ -19,11 +19,13 @@ public: */ void draw(QGraphicsScene* scene) const; - void moveTowards(const Unit& u) const; + void moveTowards(const Unit& u); bool attacks(const Unit& u) const; unsigned int getCollisionCount() const; + + bool alive() const; }; #endif // JUNK_H |
