blob: cf05fab1f139f54b55100bbb9fa408ecdba3072c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* Copyright (C) David Wolfe, 1999. All rights reserved.
* Ported to Qt and adapted for TDDD86, 2015.
*/
#ifndef ROBOT_H
#define ROBOT_H
#include "Unit.h"
#include <QGraphicsScene>
class Robot : public Unit {
public:
Robot();
virtual void draw(QGraphicsScene* scene) const;
virtual void moveTowards(const Unit& u);
virtual unsigned int getCollisionCount() const;
virtual bool alive() const;
virtual Robot *clone() const;
};
#endif // ROBOT_H
|