diff options
Diffstat (limited to 'labb4/Robot.cpp')
| -rw-r--r-- | labb4/Robot.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/labb4/Robot.cpp b/labb4/Robot.cpp index f7d96e0..f25c101 100644 --- a/labb4/Robot.cpp +++ b/labb4/Robot.cpp @@ -14,6 +14,14 @@ void Robot::draw(QGraphicsScene *scene) const { JUNK_RADIUS, JUNK_RADIUS), QPen(), QBrush(ROBOT_COLOR)); } +void Robot::moveTowards(const Unit& u) { + Unit::moveTowards(u); +} + unsigned int Robot::getCollisionCount() const { return 1; }; + +bool Robot::alive() const { + return true; +} |
