summaryrefslogtreecommitdiffstats
path: root/labb4/Robot.h
blob: 8b445dccffee615bdfc6891758ac5cf41597ab44 (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
/**
 * 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;
};

#endif // ROBOT_H