first commit
[blok] / blokitem / blokitem.h
diff --git a/blokitem/blokitem.h b/blokitem/blokitem.h
new file mode 100644 (file)
index 0000000..64a5e59
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef BLOKITEM_H
+#define BLOKITEM_H
+#include <QObject>
+#include "boxitem.h"
+
+class BlokItem :public QObject, public BoxItem
+{
+    Q_OBJECT
+public:
+    enum BlokType{NORMAL_BLOK, SOLID_BLOK, CHIMIC_BLOK, EXPLOSE_BLOK};
+    Q_ENUMS(BlokType);
+    explicit BlokItem(int width=1, int height=1,QObject *parent = 0);
+    BlokType blokType(){return mBlokType;}
+protected:
+    void setType(BlokType type){mBlokType = type;}
+
+signals:
+
+public slots:
+
+private:
+    BlokType mBlokType;
+
+};
+
+#endif // BLOKITEM_H