From d3e70eb68019f7d4e866dbda6ee8463ec5ad901b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 21 Sep 2020 15:38:11 +0200 Subject: Given files L3 tiles --- labb3/tiles/TileList.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 labb3/tiles/TileList.h (limited to 'labb3/tiles/TileList.h') 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 +#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 -- cgit v1.2.1