1 #include "totemblokitem.h"
3 TotemBlokItem::TotemBlokItem(int width,int height,QObject *parent) :
4 BlokItem(width, height,parent)
6 setTotem(YELLOW_TOTEM);
8 pen.setColor(Qt::transparent);
13 void TotemBlokItem::setTotem(Totem _totem)
15 mCurrentTotem = _totem;
17 if ( mCurrentTotem == YELLOW_TOTEM)
19 setBrush(QBrush(QPixmap(":sprites/totem1_block.png")));
22 if ( mCurrentTotem == BLUE_TOTEM)
24 setBrush(QBrush(QPixmap(":sprites/totem2_block.png")));
28 if ( mCurrentTotem == RED_TOTEM)
30 setBrush(QBrush(QPixmap(":sprites/totem3_block.png")));