QTfrontend/weaponItem.cpp
author displacer
Mon, 10 Dec 2007 22:55:14 +0000
changeset 642 3178a83c7043
parent 624 e7673b036db5
child 731 237ceeb5d422
permissions -rw-r--r--
zero weapons count is allowed
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