QTfrontend/weaponItem.cpp
author unc0rr
Sat, 15 Dec 2007 22:57:22 +0000
changeset 671 a8970859f50e
parent 642 3178a83c7043
child 731 237ceeb5d422
permissions -rw-r--r--
Actually pass host and port values to NetConnect method
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