/** * Copyright (C) David Wolfe, 1999. All rights reserved. * Ported to Qt and adapted for TDDD86, 2015. */ #ifndef JUNK_H #define JUNK_H #include "Robot.h" #include class Junk : public Robot { public: Junk(); Junk(Robot c); ~Junk() = default; /* * Draws this junk onto the given QGraphicsScene. */ void draw(QGraphicsScene* scene) const override; void moveTowards(const Unit&) override {} /* * Junk can't attack in any direction. */ bool attacks(const Unit&) const override { return false; } /* * All junk is dead. */ bool alive() const override { return false; } /* * Polymorphic clone. */ Junk *clone() const override; }; #endif // JUNK_H