/** * Copyright (C) David Wolfe, 1999. All rights reserved. * Ported to Qt and adapted for TDDD86, 2015. */ #ifndef JUNK_H #define JUNK_H #include "Unit.h" #include class Junk : public Unit { public: Junk(const Point& p): Unit(p){} Unit *clone() const override; /* * Draws this junk onto the given QGraphicsScene. */ void draw(QGraphicsScene *scene) const override; bool isAlive() const override; bool isToBeJunked() const override; void doCrash() override; void moveTowards(const Point&) override; }; #endif // JUNK_H