ScummVM API documentation
Ultima::Ultima1::Weapon Class Reference

#include <party.h>

Inheritance diagram for Ultima::Ultima1::Weapon:
Ultima::Shared::Weapon Ultima::Shared::Itemized

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
 

Detailed Description

Derived weapon class

Constructor & Destructor Documentation

◆ Weapon()

Ultima::Ultima1::Weapon::Weapon ( Ultima1Game game,
Character c,
WeaponType  weaponType 
)

Constructor

Member Function Documentation

◆ changeQuantity()

void Ultima::Ultima1::Weapon::changeQuantity ( int  delta)
inlineoverridevirtual

Change the quantity by a given amount

Reimplemented from Ultima::Shared::Itemized.

◆ getMagicDamage()

uint Ultima::Ultima1::Weapon::getMagicDamage ( ) const

Gets the magic damage a given weapon does

◆ getBuyCost()

uint Ultima::Ultima1::Weapon::getBuyCost ( ) const

Gets how much the weapon can be bought for

◆ getSellCost()

uint Ultima::Ultima1::Weapon::getSellCost ( ) const

Gets how much the weapon can sell for


The documentation for this class was generated from the following file: