QTfrontend/weaponItem.cpp
author unc0rr
Wed, 26 Dec 2007 22:16:22 +0000
changeset 686 494b5880989a
parent 642 3178a83c7043
child 731 237ceeb5d422
permissions -rw-r--r--
- Header cleanup in game.cpp - Page 'in game' to hide frontend interface during the game
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
624
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     1
#include "weaponItem.h"
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     2
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     3
WeaponItem::WeaponItem(const QImage& im, QWidget * parent) :
642
3178a83c7043 zero weapons count is allowed
displacer
parents: 624
diff changeset
     4
  ItemNum(im, parent, 0)
624
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     5
{
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     6
}
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     7
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     8
WeaponItem::~WeaponItem()
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     9
{
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    10
}
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    11
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    12
void WeaponItem::incItems()
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    13
{
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    14
  ++numItems;
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    15
}
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    16
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    17
void WeaponItem::decItems()
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    18
{
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    19
  --numItems;
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    20
}
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
    21