diff options
Diffstat (limited to 'labb4/Junk.cpp')
| -rw-r--r-- | labb4/Junk.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/labb4/Junk.cpp b/labb4/Junk.cpp index 8686129..fc0edfe 100644 --- a/labb4/Junk.cpp +++ b/labb4/Junk.cpp @@ -15,7 +15,7 @@ void Junk::draw(QGraphicsScene *scene) const { JUNK_RADIUS, JUNK_RADIUS), QPen(), QBrush(JUNK_COLOR)); } -void Junk::moveTowards(const Unit& u) const {} +void Junk::moveTowards(const Unit& u) {} bool Junk::attacks(const Unit& u) const { return false; @@ -24,3 +24,7 @@ bool Junk::attacks(const Unit& u) const { unsigned int Junk::getCollisionCount() const { return 1; }; + +bool Junk::alive() const { + return false; +} |
