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

#include <items.h>

Inheritance diagram for Bomb:
Collaboration diagram for Bomb:

Public Member Functions

 Bomb ()
 
virtual std::string getClassName ()
 
virtual boolean isUpgradable ()
 
virtual boolean isIdentified ()
 
virtual Itemrandom ()
 
virtual int price ()
 
virtual String info ()
 
- Public Member Functions inherited from Item
 CLASSNAME (Item)
 
 CLASSOBJECT (Item)
 
 Item ()
 
virtual void actions (Hero *hero, std::vector< std::string > &actions)
 
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 ItemSprite::Glowingglowing ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual bool isEquipped (Hero *hero)
 
virtual int effectiveLevel ()
 
virtual std::string desc ()
 
int Quantity ()
 
void Quantity (int value)
 
virtual void execute (Hero *hero, std::string action)
 
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 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 ItemCreate ()
 
- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 

Protected Member Functions

virtual void onThrow (int cell)
 
- Protected Member Functions inherited from Item
virtual void onDetach ()
 

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

◆ Bomb()

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

Member Function Documentation

◆ Create()

static Item * Bomb::Create ( )
inlinestatic
Here is the call graph for this function:

◆ getClassName()

virtual std::string Bomb::getClassName ( )
inlinevirtual
Here is the caller graph for this function:

◆ info()

virtual String Bomb::info ( )
inlinevirtual

Reimplemented from Item.

Here is the call graph for this function:

◆ isIdentified()

virtual boolean Bomb::isIdentified ( )
inlinevirtual

Reimplemented from Item.

◆ isUpgradable()

virtual boolean Bomb::isUpgradable ( )
inlinevirtual

Reimplemented from Item.

◆ onThrow()

void Bomb::onThrow ( int cell)
protectedvirtual

Reimplemented from Item.

Here is the call graph for this function:

◆ price()

virtual int Bomb::price ( )
inlinevirtual

Reimplemented from Item.

◆ random()

Item * Bomb::random ( )
virtual

Reimplemented from Item.

Here is the call graph for this function:

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