QTfrontend/weaponItem.cpp
author unc0rr
Mon, 14 Jan 2008 17:12:57 +0000
changeset 705 c8219a8a64fb
parent 642 3178a83c7043
child 731 237ceeb5d422
permissions -rw-r--r--
There is weapon scheme combo also on pageSimpleGame
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