diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-09-21 16:13:25 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-09-21 21:38:35 +0200 |
| commit | 3686258d2fa6fdffebb57f7d530952fd4dabf366 (patch) | |
| tree | d0290f2dc79698a4c73beeb58dd8f39b8b718edf /labb4/Junk.h | |
| parent | 245a34f1fad0e4fe2fb6401dc1d5352e4914b48a (diff) | |
| download | tddd86-l4.tar.gz | |
Given files L4l4
Diffstat (limited to 'labb4/Junk.h')
| -rw-r--r-- | labb4/Junk.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/labb4/Junk.h b/labb4/Junk.h new file mode 100644 index 0000000..b3b5648 --- /dev/null +++ b/labb4/Junk.h @@ -0,0 +1,23 @@ +/** + * 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 <QGraphicsScene> + +class Junk : public Unit { +public: + Junk(); + Junk(Unit c); + + /* + * Draws this junk onto the given QGraphicsScene. + */ + void draw(QGraphicsScene* scene) const; +}; + +#endif // JUNK_H |
