diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2020-08-17 14:57:07 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2020-08-17 14:57:07 +0200 |
| commit | d894e06c6e6a335ea672ca2aaf30066b0a9d077a (patch) | |
| tree | 8fbea33bf6a8622e435aeedbc7c2a8b5b82204d9 /labb3/tiles/TileList.h | |
| parent | b1bf345edb518800d0cfeae97eceacf51985e7e7 (diff) | |
| download | tddd86-d894e06c6e6a335ea672ca2aaf30066b0a9d077a.tar.gz | |
add given files
Diffstat (limited to 'labb3/tiles/TileList.h')
| -rw-r--r-- | labb3/tiles/TileList.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/labb3/tiles/TileList.h b/labb3/tiles/TileList.h new file mode 100644 index 0000000..a4b6ce6 --- /dev/null +++ b/labb3/tiles/TileList.h @@ -0,0 +1,29 @@ +// This is the .h file you will edit and turn in. +// We have provided a skeleton for you, +// but you must finish it as described in the spec. +// Also remove these comments here and add your own, as well as on the members. +// TODO: remove this comment header + +#ifndef TILELIST_H +#define TILELIST_H + +#include <QGraphicsScene> +#include "Tile.h" + +class TileList { +public: + TileList(); + ~TileList(); + void addTile(Tile tile); + void drawAll(QGraphicsScene* scene); + int indexOfTopTile(int x, int y); + void lower(int x, int y); + void raise(int x, int y); + void remove(int x, int y); + void removeAll(int x, int y); + +private: + +}; + +#endif // TILELIST_H |
