Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Item Class Reference

Contains the cost, icon, modifiers (weapon and armour, as well as special information (if it gives you a healing potion, mana potion or spell). More...

#include <Shops.h>

List of all members.

Public Methods

 Item ()
 Creates some default crap for items.


Public Attributes

int cost
 how many gold points do you need to buy it?

int icon
 what little picture should we fetch for it in store?

int mod
 the weapons modifier.

int ac_mod
 the armour-class modifier.

string name
 the name of the item, in STL string.

bool bIsHealingItem
 does buying this item give you an additional healing potion.

bool bIsMagic
 should we bother looking at the rest of the spells?

bool bIsHealSpell
 provides Heal 1.

bool bIsFireSpell
 provides Fire 1.

bool bIsLightningSpell
 provides Mr. Zappy 1.

bool bIsEarthSpell
 provides Earth 1.

bool bIsMeteor
 provides Meteor 1.

bool bIsHandOfDeath
 provides Hand of Death 1.

bool bIsFullHeal
 provides Full Heal 1.

bool bIsKey
 provides a skeleton key?

bool bIsManaPotion
 provides a magic-refreshing mana potion?

int count
 We're hacking this up, always set to 1, but some enterprising hacker can probably add it to Shops.cpp's load item function.


Detailed Description

Contains the cost, icon, modifiers (weapon and armour, as well as special information (if it gives you a healing potion, mana potion or spell).


The documentation for this class was generated from the following files:
Generated on Thu Jun 3 16:21:29 2004 by doxygen1.2.15