My Project
 
Loading...
Searching...
No Matches
Armor Class Reference

#include <armor.h>

Inheritance diagram for Armor:
Collaboration diagram for Armor:

Classes

class  Glyph
 

Public Member Functions

 Armor (int tier)
 
virtual std::string getClassName ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual void actions (Hero *hero, std::vector< std::string > &actions)
 
virtual bool doEquip (Hero *hero)
 
virtual float time2equip (Hero *hero)
 
virtual bool doUnequip (Hero *hero, bool collect, bool single)
 
virtual bool isEquipped (Hero *hero)
 
int DR ()
 
virtual Itemupgrade ()
 
Itemupgrade (boolean inscribe)
 
ItemsafeUpgrade ()
 
virtual Itemdegrade ()
 
virtual int maxDurability (int lvl)
 
int proc (Char *attacker, Char *defender, int damage)
 
virtual String toString ()
 
virtual String Name ()
 
virtual String info ()
 
virtual Itemrandom ()
 
int typicalSTR ()
 
int typicalDR ()
 
virtual int price ()
 
Armorinscribe (Glyph *glyph)
 
Armorinscribe ()
 
boolean isInscribed ()
 
virtual ItemSprite::Glowingglowing ()
 
- Public Member Functions inherited from EquipableItem
virtual void execute (Hero *hero, std::string action)
 
virtual void doDrop (Hero *hero)
 
virtual void cast (Hero *user, int dst)
 
virtual bool doUnequip (Hero *hero, bool collect)
 
- Public Member Functions inherited from Item
 CLASSNAME (Item)
 
 CLASSOBJECT (Item)
 
 Item ()
 
virtual bool doPickUp (Hero *hero)
 
virtual void doThrow (Hero *hero)
 
std::string trueName ()
 
int Image ()
 
Itemdetach (Bag *container)
 
ItemdetachAll (Bag *container)
 
virtual bool isUpgradable ()
 
virtual bool isIdentified ()
 
virtual int effectiveLevel ()
 
virtual std::string desc ()
 
int Quantity ()
 
void Quantity (int value)
 
virtual void getBroken ()
 
bool isBroken ()
 
virtual void fix ()
 
int maxDurability ()
 
int visiblyUpgraded ()
 
virtual Itemidentify ()
 
virtual void Level (int value)
 
int Level ()
 
virtual boolean collect (Bag *container)
 
void use ()
 
void updateQuickslot ()
 
Itemdegrade (int n)
 
int considerState (int price)
 
void polish ()
 
std::string status ()
 
- Public Member Functions inherited from Object
virtual std::string getObject ()=0
 

Public Attributes

int tier
 
int STR
 
Glyphglyph
 
- Public Attributes inherited from Item
std::string defaultAction
 
std::string name = "smth"
 
int image = 0
 
bool stackable = false
 
bool levelKnown = false
 
bool cursed
 
bool cursedKnown
 
bool unique = false
 
int quantity
 

Additional Inherited Members

- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 
- Static Public Attributes inherited from EquipableItem
static const std::string AC_EQUIP = "EQUIP"
 
static const std::string AC_UNEQUIP = "UNEQUIP"
 
- Static Public Attributes inherited from Item
static HerocurUser
 
static ItemcurItem
 
- Protected Member Functions inherited from Item
virtual void onThrow (int cell)
 
virtual void onDetach ()
 
- Static Protected Member Functions inherited from EquipableItem
static void equipCursed (Hero *hero)
 
- Static Protected Attributes inherited from Item
static const float TIME_TO_THROW = 1.0f
 
static const float TIME_TO_PICK_UP = 1.0f
 
static const float TIME_TO_DROP = 0.5f
 
static const std::string AC_DROP = "lang.item_drop"
 
static const std::string AC_THROW = "lang.item_throw"
 
static CellSelector::Listenerthrower = new CellSelectorListenerNew()
 

Constructor & Destructor Documentation

◆ Armor()

Armor::Armor ( int tier)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ actions()

void Armor::actions ( Hero * hero,
std::vector< std::string > & actions )
virtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ degrade()

virtual Item * Armor::degrade ( )
inlinevirtual

Reimplemented from Item.

Here is the call graph for this function:

◆ doEquip()

bool Armor::doEquip ( Hero * hero)
virtual

Implements EquipableItem.

Here is the call graph for this function:

◆ doUnequip()

bool Armor::doUnequip ( Hero * hero,
bool collect,
bool single )
virtual

Reimplemented from EquipableItem.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DR()

int Armor::DR ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClassName()

virtual std::string Armor::getClassName ( )
inlinevirtual

Reimplemented in ClothArmor, LeatherArmor, MailArmor, PlateArmor, and ScaleArmor.

Here is the caller graph for this function:

◆ glowing()

virtual ItemSprite::Glowing * Armor::glowing ( )
inlinevirtual

Reimplemented from Item.

◆ info()

String Armor::info ( )
virtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inscribe() [1/2]

Armor * Armor::inscribe ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inscribe() [2/2]

Armor * Armor::inscribe ( Glyph * glyph)
inline
Here is the call graph for this function:

◆ isEquipped()

bool Armor::isEquipped ( Hero * hero)
virtual

Reimplemented from Item.

Here is the caller graph for this function:

◆ isInscribed()

boolean Armor::isInscribed ( )
inline

◆ maxDurability()

virtual int Armor::maxDurability ( int lvl)
inlinevirtual

Reimplemented from Item.

◆ Name()

virtual String Armor::Name ( )
inlinevirtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ price()

int Armor::price ( )
virtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ proc()

int Armor::proc ( Char * attacker,
Char * defender,
int damage )
Here is the call graph for this function:

◆ random()

Item * Armor::random ( )
virtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restoreFromBundle()

void Armor::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented from Item.

Here is the call graph for this function:

◆ safeUpgrade()

Item * Armor::safeUpgrade ( )
inline
Here is the call graph for this function:

◆ storeInBundle()

void Armor::storeInBundle ( Bundle * bundle)
virtual

Reimplemented from Item.

Here is the call graph for this function:

◆ time2equip()

float Armor::time2equip ( Hero * hero)
virtual

Reimplemented from EquipableItem.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

String Armor::toString ( )
virtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ typicalDR()

int Armor::typicalDR ( )
inline
Here is the caller graph for this function:

◆ typicalSTR()

int Armor::typicalSTR ( )
inline
Here is the caller graph for this function:

◆ upgrade() [1/2]

virtual Item * Armor::upgrade ( )
inlinevirtual

Reimplemented from Item.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upgrade() [2/2]

Item * Armor::upgrade ( boolean inscribe)
Here is the call graph for this function:

Member Data Documentation

◆ glyph

Glyph* Armor::glyph

◆ STR

int Armor::STR

◆ tier

int Armor::tier

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