]> Shamusworld >> Repos - warehouse-man-deluxe/blobdiff - src/editorwidget.h
Moved level storage to global location.
[warehouse-man-deluxe] / src / editorwidget.h
index 87ab02fda3d1aa97299c951ebbadb05fe4e4b836..01781fa201cae89c6c5570629108f77537d2804c 100644 (file)
@@ -3,26 +3,7 @@
 
 #include <QtGui>
 #include <stdint.h>
-#include <vector>
-
-#define BOARDSIZE 128
-
-struct Point
-{
-       Point(int xx = 0, int yy = 0) { x = xx; y = yy; }
-       int x, y;
-};
-
-struct Level
-{
-       uint8_t board[BOARDSIZE][BOARDSIZE];
-       char name[41];
-       Point corner;           // Corner dimensions on screen
-       Point cursor;           // Cursor location
-// This stuff will go into the save file, but we don't need it here...
-//     Point size;                     // Actual dimensions of the level
-//     Point boardCorner;      // Where on the gird the UL corner of the level is
-};
+#include "boards.h"
 
 class EditorWidget: public QWidget
 {
@@ -62,7 +43,6 @@ class EditorWidget: public QWidget
                void Pause(int);
 
        public:
-               std::vector<Level> levelStorage;
                uint32_t currentLevel;
 
        private: