summaryrefslogtreecommitdiffstats
path: root/labb3/tiles/TileList.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-09-21 15:38:11 +0200
committerGustav Sörnäs <gustav@sornas.net>2020-09-21 15:38:11 +0200
commitd3e70eb68019f7d4e866dbda6ee8463ec5ad901b (patch)
treec42f4ab3f1f8651febdaa1102172544c591d5fbd /labb3/tiles/TileList.h
parentaa9d7f6543982618e0b4c72cfbfd3ebfeda293c1 (diff)
downloadtddd86-d3e70eb68019f7d4e866dbda6ee8463ec5ad901b.tar.gz
Given files L3 tiles
Diffstat (limited to 'labb3/tiles/TileList.h')
-rw-r--r--labb3/tiles/TileList.h29
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