#include <party.h>
Public Member Functions | |
| Weapon (Ultima1Game *game, Character *c, WeaponType weaponType) | |
| void | changeQuantity (int delta) override |
| uint | getMagicDamage () const |
| uint | getBuyCost () const |
| uint | getSellCost () const |
Public Member Functions inherited from Ultima::Shared::Weapon | |
| Weapon () | |
Public Member Functions inherited from Ultima::Shared::Itemized | |
| Itemized () | |
| virtual | ~Itemized () |
| void | synchronize (Common::Serializer &s) |
| void | incrQuantity () |
| bool | empty () const |
| bool | decrQuantity () |
Additional Inherited Members | |
Public Attributes inherited from Ultima::Shared::Weapon | |
| Common::String | _shortName |
| Common::String | _longName |
| uint | _distance |
Public Attributes inherited from Ultima::Shared::Itemized | |
| uint | _quantity |
Derived weapon class
| Ultima::Ultima1::Weapon::Weapon | ( | Ultima1Game * | game, |
| Character * | c, | ||
| WeaponType | weaponType | ||
| ) |
Constructor
|
inlineoverridevirtual |
Change the quantity by a given amount
Reimplemented from Ultima::Shared::Itemized.
| uint Ultima::Ultima1::Weapon::getMagicDamage | ( | ) | const |
Gets the magic damage a given weapon does
| uint Ultima::Ultima1::Weapon::getBuyCost | ( | ) | const |
Gets how much the weapon can be bought for
| uint Ultima::Ultima1::Weapon::getSellCost | ( | ) | const |
Gets how much the weapon can sell for