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

#include <wand.h>

Inheritance diagram for WandOfMagicMissile:
Collaboration diagram for WandOfMagicMissile:

Public Member Functions

 WandOfMagicMissile ()
 
virtual std::string getClassName ()
 
virtual void actions (Hero *hero, std::vector< std::string > &actions)
 
virtual void execute (Hero *hero, const std::string &action)
 
virtual void setKnown ()
 
virtual String desc ()
 
- Public Member Functions inherited from Wand
 Wand ()
 
virtual int min ()
 
virtual int max ()
 
virtual bool doUnequip (Hero *hero, bool collect, bool single)
 
virtual void activate (Hero *hero)
 
virtual bool collect (Bag *container)
 
void charge (Char *owner)
 
void onDetach ()
 
void stopCharging ()
 
int power ()
 
void setKnown ()
 
virtual Itemidentify ()
 
virtual std::string toString ()
 
virtual std::string Name ()
 
virtual std::string info ()
 
virtual bool isIdentified ()
 
virtual std::string status ()
 
virtual Itemupgrade ()
 
virtual Itemdegrade ()
 
virtual int maxDurability (int lvl)
 
virtual Itemrandom ()
 
virtual int price ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
- Public Member Functions inherited from KindOfWeapon
virtual bool isEquipped (Hero *hero)
 
virtual bool doEquip (Hero *hero)
 
virtual int damageRoll (Hero *owner)
 
virtual float acuracyFactor (Hero *hero)
 
virtual float speedFactor (Hero *hero)
 
virtual void proc (Char *attacker, Char *defender, int damage)
 
- 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 ItemSprite::Glowingglowing ()
 
virtual bool isUpgradable ()
 
virtual int effectiveLevel ()
 
int Quantity ()
 
void Quantity (int value)
 
virtual void getBroken ()
 
bool isBroken ()
 
virtual void fix ()
 
int maxDurability ()
 
int visiblyUpgraded ()
 
virtual void Level (int value)
 
int Level ()
 
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
 

Static Public Member Functions

static ItemCreate ()
 
- Static Public Member Functions inherited from Wand
static void initWoods ()
 
static void save (Bundle *bundle)
 
static void restore (Bundle *bundle)
 
static bool allKnown ()
 
- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 

Public Attributes

boolean disenchantEquipped
 
- Public Attributes inherited from Wand
int maxCharges
 
int curCharges = maxCharges
 
- 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

static const String AC_DISENCHANT = "DISENCHANT"
 
static const String TXT_DISENCHANTED
 
static const float TIME_TO_DISENCHANT = 2.0f
 
- Static Public Attributes inherited from Wand
static const std::string AC_ZAP = "ZAP"
 
- 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

virtual void onZap (int cell)
 
virtual boolean isKnown ()
 
virtual int initialCharges ()
 
- Protected Member Functions inherited from Wand
virtual void init ()
 
bool isKnown ()
 
void updateLevel ()
 
virtual void fx (int cell, Callback *callback)
 
void wandUsed ()
 
- Protected Member Functions inherited from EquipableItem
virtual float time2equip (Hero *hero)
 
- Protected Member Functions inherited from Item
virtual void onThrow (int cell)
 

Additional Inherited Members

- Static Protected Member Functions inherited from EquipableItem
static void equipCursed (Hero *hero)
 
- Protected Attributes inherited from Wand
Chargercharger
 
bool hitChars
 
- Static Protected Attributes inherited from Wand
static CellSelector::Listenerzapper
 
- Static Protected Attributes inherited from KindOfWeapon
static const float TIME_TO_EQUIP = 1.0f
 
- 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

◆ WandOfMagicMissile()

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

Member Function Documentation

◆ actions()

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

Reimplemented from Wand.

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

◆ Create()

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

◆ desc()

virtual String WandOfMagicMissile::desc ( )
inlinevirtual

Reimplemented from Item.

Here is the call graph for this function:

◆ execute()

void WandOfMagicMissile::execute ( Hero * hero,
const std::string & action )
virtual

Reimplemented from Wand.

Here is the call graph for this function:

◆ getClassName()

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

◆ initialCharges()

virtual int WandOfMagicMissile::initialCharges ( )
inlineprotectedvirtual

Reimplemented from Wand.

◆ isKnown()

virtual boolean WandOfMagicMissile::isKnown ( )
inlineprotectedvirtual

◆ onZap()

void WandOfMagicMissile::onZap ( int cell)
protectedvirtual

Implements Wand.

Here is the call graph for this function:

◆ setKnown()

virtual void WandOfMagicMissile::setKnown ( )
inlinevirtual

Member Data Documentation

◆ AC_DISENCHANT

const String WandOfMagicMissile::AC_DISENCHANT = "DISENCHANT"
static

◆ disenchantEquipped

boolean WandOfMagicMissile::disenchantEquipped

◆ TIME_TO_DISENCHANT

const float WandOfMagicMissile::TIME_TO_DISENCHANT = 2.0f
static

◆ TXT_DISENCHANTED

const String WandOfMagicMissile::TXT_DISENCHANTED
static
Initial value:
=
"you disenchanted the Wand of Magic Missile and used its essence to upgrade your %s"

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