ScummVM API documentation
Ultima::Shared::Itemized Class Reference

#include <character.h>

Inheritance diagram for Ultima::Shared::Itemized:
Ultima::Shared::Armour Ultima::Shared::Spell Ultima::Shared::Weapon Ultima::Ultima1::Armour Ultima::Ultima1::Spells::Spell Ultima::Ultima1::Weapon Ultima::Ultima1::Spells::Blink Ultima::Ultima1::Spells::Create Ultima::Ultima1::Spells::Destroy Ultima::Ultima1::Spells::KillMagicMIssile Ultima::Ultima1::Spells::LadderDown Ultima::Ultima1::Spells::LadderUp Ultima::Ultima1::Spells::OpenUnlock Ultima::Ultima1::Spells::Prayer Ultima::Ultima1::Spells::Steal

Public Member Functions

 Itemized ()
 
virtual ~Itemized ()
 
void synchronize (Common::Serializer &s)
 
virtual void changeQuantity (int delta)
 
void incrQuantity ()
 
bool empty () const
 
bool decrQuantity ()
 

Public Attributes

uint _quantity
 

Detailed Description

Base class for class types that have a quantity

Constructor & Destructor Documentation

◆ Itemized()

Ultima::Shared::Itemized::Itemized ( )
inline

Constructor

◆ ~Itemized()

virtual Ultima::Shared::Itemized::~Itemized ( )
inlinevirtual

Destructor

Member Function Documentation

◆ synchronize()

void Ultima::Shared::Itemized::synchronize ( Common::Serializer s)
inline

Synchronize data

◆ changeQuantity()

virtual void Ultima::Shared::Itemized::changeQuantity ( int  delta)
inlinevirtual

Change the quantity by a given amount

Reimplemented in Ultima::Ultima1::Armour, Ultima::Ultima1::Weapon, and Ultima::Ultima1::Spells::Spell.

◆ incrQuantity()

void Ultima::Shared::Itemized::incrQuantity ( )
inline

Increase the quantity by 1

◆ empty()

bool Ultima::Shared::Itemized::empty ( ) const
inline

Returns if the itemized is empty

◆ decrQuantity()

bool Ultima::Shared::Itemized::decrQuantity ( )
inline

Decrease the quantity by 1


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