QTfrontend/weaponItem.cpp
author unc0rr
Sun, 09 Dec 2007 11:25:59 +0000
changeset 633 9050a949db21
parent 624 e7673b036db5
child 642 3178a83c7043
permissions -rw-r--r--
Half implement registration in servers list
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) :
e7673b036db5 weaponItem added
displacer
parents:
diff changeset
     4
  ItemNum(im, parent)
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