#include <item.h>
◆ Item()
◆ actions()
| void Item::actions |
( |
Hero * | hero, |
|
|
std::vector< std::string > & | actions ) |
|
virtual |
Reimplemented in Amulet, Armor, DewVial, Food, Gold, Honeypot, KindOfWeapon, MissileWeapon, Plant::Seed, Potion, Ring, Scroll, ShortSword, Wand, and WandOfMagicMissile.
◆ cast()
| void Item::cast |
( |
Hero * | user, |
|
|
int | dst ) |
|
virtual |
◆ CLASSNAME()
◆ CLASSOBJECT()
| Item::CLASSOBJECT |
( |
Item | | ) |
|
◆ collect()
◆ considerState()
| int Item::considerState |
( |
int | price | ) |
|
◆ degrade() [1/2]
| virtual Item * Item::degrade |
( |
| ) |
|
|
inlinevirtual |
◆ degrade() [2/2]
| Item * Item::degrade |
( |
int | n | ) |
|
|
inline |
◆ desc()
| virtual std::string Item::desc |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in BattleAxe, Boomerang, ClothArmor, CurareDart, Dagger, Dart, Dreamweed::Seed, Earthroot::Seed, Fadeleaf::Seed, Firebloom::Seed, Glaive, Icecap::Seed, IncendiaryDart, Javelin, Knuckles, LeatherArmor, Longsword, Mace, MailArmor, PlateArmor, PotionOfExperience, PotionOfFrost, PotionOfHealing, PotionOfInvisibility, PotionOfLevitation, PotionOfLiquidFlame, PotionOfMight, PotionOfMindVision, PotionOfParalyticGas, PotionOfPurity, PotionOfStrength, PotionOfToxicGas, Quarterstaff, Ring, RingOfAccuracy, RingOfElements, RingOfEvasion, RingOfHaggler, RingOfHaste, RingOfHerbalism, RingOfMending, RingOfPower, RingOfSatiety, RingOfShadows, RingOfThorns, Rotberry::Seed, ScaleArmor, ScrollOfChallenge, ScrollOfEnchantment, ScrollOfIdentify, ScrollOfLullaby, ScrollOfMagicMapping, ScrollOfMirrorImage, ScrollOfPsionicBlast, ScrollOfRecharging, ScrollOfRemoveCurse, ScrollOfTeleportation, ScrollOfTerror, ScrollOfUpgrade, ShortSword, Shuriken, Sorrowmoss::Seed, Spear, Sungrass::Seed, Sword, Tamahawk, WandOfAmok, WandOfAvalanche, WandOfBlink, WandOfDisintegration, WandOfFirebolt, WandOfFlock, WandOfLightning, WandOfMagicMissile, WandOfPoison, WandOfReach, WandOfRegrowth, WandOfSlowness, WandOfTeleportation, and WarHammer.
◆ detach()
| Item * Item::detach |
( |
Bag * | container | ) |
|
◆ detachAll()
| Item * Item::detachAll |
( |
Bag * | container | ) |
|
◆ doDrop()
| void Item::doDrop |
( |
Hero * | hero | ) |
|
|
virtual |
◆ doPickUp()
| bool Item::doPickUp |
( |
Hero * | hero | ) |
|
|
virtual |
◆ doThrow()
| void Item::doThrow |
( |
Hero * | hero | ) |
|
|
virtual |
◆ effectiveLevel()
| int Item::effectiveLevel |
( |
| ) |
|
|
virtual |
◆ evoke()
| void Item::evoke |
( |
Hero * | hero | ) |
|
|
static |
◆ execute()
| void Item::execute |
( |
Hero * | hero, |
|
|
std::string | action ) |
|
virtual |
◆ fix()
◆ getBroken()
| virtual void Item::getBroken |
( |
| ) |
|
|
inlinevirtual |
◆ glowing()
◆ identify()
| Item * Item::identify |
( |
| ) |
|
|
virtual |
◆ Image()
◆ info()
| virtual std::string Item::info |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in Amulet, Armor, Bomb, ChargrilledMeat, Dewdrop, DewVial, Food, FrozenCarpaccio, Gold, GoldenKey, Honeypot, IronKey, MeleeWeapon, MissileWeapon, MysteryMeat, Pasty, Plant::Seed, Potion, Ring, Scroll, SeedPouch, SkeletonKey, and Wand.
◆ isBroken()
◆ isEquipped()
| virtual bool Item::isEquipped |
( |
Hero * | hero | ) |
|
|
inlinevirtual |
◆ isIdentified()
| virtual bool Item::isIdentified |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in Amulet, Bomb, DewVial, Food, Gold, Honeypot, Key, MissileWeapon, Plant::Seed, Potion, Ring, Scroll, and Wand.
◆ isUpgradable()
| virtual bool Item::isUpgradable |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in Amulet, Bomb, Boomerang, DewVial, Food, Gold, Honeypot, Key, MissileWeapon, Plant::Seed, Potion, RingOfHaggler, RingOfThorns, and Scroll.
◆ Level() [1/2]
◆ Level() [2/2]
| virtual void Item::Level |
( |
int | value | ) |
|
|
inlinevirtual |
◆ maxDurability() [1/2]
| int Item::maxDurability |
( |
| ) |
|
|
inline |
◆ maxDurability() [2/2]
| virtual int Item::maxDurability |
( |
int | lvl | ) |
|
|
inlinevirtual |
◆ Name()
| std::string Item::Name |
( |
| ) |
|
|
virtual |
◆ onDetach()
| virtual void Item::onDetach |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ onThrow()
| void Item::onThrow |
( |
int | cell | ) |
|
|
protectedvirtual |
◆ polish()
◆ price()
| virtual int Item::price |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in Armor, Bomb, ChargrilledMeat, CurareDart, Dart, Food, FrozenCarpaccio, Honeypot, IncendiaryDart, Javelin, MeleeWeapon, MysteryMeat, Pasty, Plant::Seed, Potion, PotionOfExperience, PotionOfFrost, PotionOfHealing, PotionOfInvisibility, PotionOfLevitation, PotionOfLiquidFlame, PotionOfMight, PotionOfMindVision, PotionOfParalyticGas, PotionOfPurity, PotionOfStrength, PotionOfToxicGas, Ring, Scroll, ScrollOfIdentify, ScrollOfLullaby, ScrollOfMagicMapping, ScrollOfPsionicBlast, ScrollOfRecharging, ScrollOfRemoveCurse, ScrollOfTeleportation, ScrollOfTerror, SeedPouch, Shuriken, Tamahawk, and Wand.
◆ Quantity() [1/2]
◆ Quantity() [2/2]
| void Item::Quantity |
( |
int | value | ) |
|
|
inline |
◆ random()
| virtual Item * Item::random |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in Armor, Bomb, CurareDart, Dart, Gold, IncendiaryDart, Javelin, MeleeWeapon, MissileWeapon, Ring, RingOfHaggler, RingOfThorns, Shuriken, Tamahawk, Wand, and Weapon.
◆ restoreFromBundle()
| void Item::restoreFromBundle |
( |
Bundle * | bundle | ) |
|
|
virtual |
◆ status()
| std::string Item::status |
( |
| ) |
|
◆ storeInBundle()
| void Item::storeInBundle |
( |
Bundle * | bundle | ) |
|
|
virtual |
◆ toString()
| std::string Item::toString |
( |
| ) |
|
|
virtual |
◆ trueName()
| std::string Item::trueName |
( |
| ) |
|
|
inline |
◆ updateQuickslot()
| void Item::updateQuickslot |
( |
| ) |
|
◆ upgrade()
| virtual Item * Item::upgrade |
( |
| ) |
|
|
inlinevirtual |
◆ use()
◆ Virtual()
| Item * Item::Virtual |
( |
const std::string & | cl | ) |
|
|
static |
◆ visiblyUpgraded()
| int Item::visiblyUpgraded |
( |
| ) |
|
|
inline |
◆ AC_DROP
| const std::string Item::AC_DROP = "lang.item_drop" |
|
staticprotected |
◆ AC_THROW
| const std::string Item::AC_THROW = "lang.item_throw" |
|
staticprotected |
◆ curItem
◆ cursed
◆ cursedKnown
◆ curUser
◆ defaultAction
| std::string Item::defaultAction |
◆ image
◆ levelKnown
| bool Item::levelKnown = false |
◆ name
| std::string Item::name = "smth" |
◆ quantity
◆ stackable
| bool Item::stackable = false |
◆ thrower
◆ TIME_TO_DROP
| const float Item::TIME_TO_DROP = 0.5f |
|
staticprotected |
◆ TIME_TO_PICK_UP
| const float Item::TIME_TO_PICK_UP = 1.0f |
|
staticprotected |
◆ TIME_TO_THROW
| const float Item::TIME_TO_THROW = 1.0f |
|
staticprotected |
◆ unique
| bool Item::unique = false |
The documentation for this class was generated from the following files: