1 #include "totemblokitem.h"
3 TotemBlokItem::TotemBlokItem(int width,int height,QObject *parent) :
4 BlokItem(width, height,parent)
6 setTotem(YELLOW_TOTEM);
10 void TotemBlokItem::setTotem(Totem _totem)
12 mCurrentTotem = _totem;
14 if ( mCurrentTotem == YELLOW_TOTEM)
16 setBrush(QBrush(QPixmap(":sprites/totem1_block.png")));
19 if ( mCurrentTotem == BLUE_TOTEM)
21 setBrush(QBrush(QPixmap(":sprites/totem2_block.png")));
25 if ( mCurrentTotem == RED_TOTEM)
27 setBrush(QBrush(QPixmap(":sprites/totem3_block.png")));