X-Git-Url: http://git.maemo.org/git/?p=blok;a=blobdiff_plain;f=blokitem%2Fblokitem.h;fp=blokitem%2Fblokitem.h;h=64a5e59c879374348b39ea0bc1b89a7d326f0535;hp=0000000000000000000000000000000000000000;hb=f4dacbe0a45b6d24b5c0c0f30634988c71bc321d;hpb=1ef80d0d5bf4d1fc254fb1d05ad4e448645d5895 diff --git a/blokitem/blokitem.h b/blokitem/blokitem.h new file mode 100644 index 0000000..64a5e59 --- /dev/null +++ b/blokitem/blokitem.h @@ -0,0 +1,26 @@ +#ifndef BLOKITEM_H +#define BLOKITEM_H +#include +#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