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

#include <weapon.h>

Inheritance diagram for MissileWeapon:
Collaboration diagram for MissileWeapon:

Public Member Functions

 MissileWeapon ()
 
virtual void actions (Hero *hero, std::vector< std::string > &actions)
 
virtual void proc (Char *attacker, Char *defender, int damage)
 
virtual bool doEquip (Hero *hero)
 
virtual Itemrandom ()
 
virtual boolean isUpgradable ()
 
virtual boolean isIdentified ()
 
virtual String info ()
 
- Public Member Functions inherited from Weapon
 Weapon ()
 
virtual std::string getClassName ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual float acuracyFactor (Hero *hero)
 
virtual float speedFactor (Hero *hero)
 
virtual int damageRoll (Hero *owner)
 
Itemupgrade (boolean enchant)
 
virtual int maxDurability (int lvl)
 
virtual String toString ()
 
virtual String Name ()
 
Weaponenchant (Enchantment *ench)
 
Weaponenchant ()
 
boolean isEnchanted ()
 
virtual ItemSprite::Glowingglowing ()
 
- Public Member Functions inherited from KindOfWeapon
virtual bool isEquipped (Hero *hero)
 
virtual bool doUnequip (Hero *hero, bool collect, bool single)
 
virtual void activate (Hero *hero)
 
virtual int min ()=0
 
virtual int max ()=0
 
- 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 int effectiveLevel ()
 
virtual std::string desc ()
 
virtual int price ()
 
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 ()
 
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
 

Protected Member Functions

virtual void onThrow (int cell)
 
virtual void miss (int cell)
 
- Protected Member Functions inherited from EquipableItem
virtual float time2equip (Hero *hero)
 
- Protected Member Functions inherited from Item
virtual void onDetach ()
 

Additional Inherited Members

- Public Types inherited from Weapon
enum  Imbue { NONE , SPEED , ACCURACY }
 
- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 
- Public Attributes inherited from Weapon
int STR
 
float ACU
 
float DLY
 
Imbue imbue
 
- 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 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
 
- Static Protected Member Functions inherited from EquipableItem
static void equipCursed (Hero *hero)
 
- Protected Attributes inherited from Weapon
Enchantmentenchantment
 
- 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

◆ MissileWeapon()

MissileWeapon::MissileWeapon ( )

Member Function Documentation

◆ actions()

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

Reimplemented from KindOfWeapon.

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

◆ doEquip()

bool MissileWeapon::doEquip ( Hero * hero)
virtual

Reimplemented from KindOfWeapon.

Here is the call graph for this function:

◆ info()

String MissileWeapon::info ( )
virtual

Reimplemented from Item.

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

◆ isIdentified()

virtual boolean MissileWeapon::isIdentified ( )
inlinevirtual

Reimplemented from Item.

◆ isUpgradable()

virtual boolean MissileWeapon::isUpgradable ( )
inlinevirtual

Reimplemented from Item.

Reimplemented in Boomerang.

◆ miss()

virtual void MissileWeapon::miss ( int cell)
inlineprotectedvirtual

Reimplemented in Boomerang.

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

◆ onThrow()

void MissileWeapon::onThrow ( int cell)
protectedvirtual

Reimplemented from Item.

Reimplemented in IncendiaryDart.

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

◆ proc()

void MissileWeapon::proc ( Char * attacker,
Char * defender,
int damage )
virtual

Reimplemented from Weapon.

Reimplemented in Boomerang, CurareDart, IncendiaryDart, Javelin, and Tamahawk.

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

◆ random()

virtual Item * MissileWeapon::random ( )
inlinevirtual

Reimplemented from Weapon.

Reimplemented in CurareDart, Dart, IncendiaryDart, Javelin, Shuriken, and Tamahawk.


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