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

#include <dewdrop.h>

Inheritance diagram for DewVial:
Collaboration diagram for DewVial:

Public Member Functions

 DewVial ()
 
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 void execute (Hero *hero, std::string action)
 
virtual boolean isUpgradable ()
 
virtual boolean isIdentified ()
 
boolean isFull ()
 
void collectDew (Dewdrop *dew)
 
void fill ()
 
virtual ItemSprite::Glowingglowing ()
 
virtual String status ()
 
virtual String info ()
 
- Public Member Functions inherited from Item
 CLASSNAME (Item)
 
 CLASSOBJECT (Item)
 
 Item ()
 
virtual bool doPickUp (Hero *hero)
 
virtual void doDrop (Hero *hero)
 
virtual void doThrow (Hero *hero)
 
virtual std::string toString ()
 
virtual std::string Name ()
 
std::string trueName ()
 
int Image ()
 
Itemdetach (Bag *container)
 
ItemdetachAll (Bag *container)
 
virtual bool isEquipped (Hero *hero)
 
virtual int effectiveLevel ()
 
virtual std::string desc ()
 
virtual int price ()
 
int Quantity ()
 
void Quantity (int value)
 
virtual void cast (Hero *user, int dst)
 
virtual void getBroken ()
 
bool isBroken ()
 
virtual void fix ()
 
virtual int maxDurability (int lvl)
 
int maxDurability ()
 
int visiblyUpgraded ()
 
virtual Itemidentify ()
 
virtual Itemrandom ()
 
virtual void Level (int value)
 
int Level ()
 
virtual boolean collect (Bag *container)
 
void use ()
 
void updateQuickslot ()
 
virtual Itemupgrade ()
 
virtual Itemdegrade ()
 
Itemdegrade (int n)
 
int considerState (int price)
 
void polish ()
 
std::string status ()
 
- Public Member Functions inherited from Object
virtual std::string getObject ()=0
 

Static Public Member Functions

static void autoDrink (Hero *hero)
 
- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 

Additional Inherited Members

- 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
 
- 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 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

◆ DewVial()

DewVial::DewVial ( )
Here is the caller graph for this function:

Member Function Documentation

◆ actions()

void DewVial::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:

◆ autoDrink()

void DewVial::autoDrink ( Hero * hero)
static
Here is the call graph for this function:

◆ collectDew()

void DewVial::collectDew ( Dewdrop * dew)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute()

void DewVial::execute ( Hero * hero,
std::string action )
virtual

Reimplemented from Item.

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

◆ fill()

void DewVial::fill ( )
inline
Here is the call graph for this function:

◆ getClassName()

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

◆ glowing()

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

Reimplemented from Item.

Here is the call graph for this function:

◆ info()

virtual String DewVial::info ( )
inlinevirtual

Reimplemented from Item.

◆ isFull()

boolean DewVial::isFull ( )
inline
Here is the caller graph for this function:

◆ isIdentified()

virtual boolean DewVial::isIdentified ( )
inlinevirtual

Reimplemented from Item.

◆ isUpgradable()

virtual boolean DewVial::isUpgradable ( )
inlinevirtual

Reimplemented from Item.

◆ restoreFromBundle()

void DewVial::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented from Item.

Here is the call graph for this function:

◆ status()

String DewVial::status ( )
virtual

◆ storeInBundle()

void DewVial::storeInBundle ( Bundle * bundle)
virtual

Reimplemented from Item.

Here is the call graph for this function:

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