#include <WeaponType.h>
| Public Member Functions | |
| WeaponType () | |
| WeaponType (int id) | |
| WeaponType (const WeaponType &other) | |
| WeaponType & | operator= (const WeaponType &other) | 
| bool | operator== (const WeaponType &other) const | 
| bool | operator!= (const WeaponType &other) const | 
| bool | operator< (const WeaponType &other) const | 
| int | getID () const | 
| std::string | getName () const | 
| int | damageAmount () const | 
| int | damageBonus () const | 
| int | damageCooldown () const | 
| int | damageFactor () const | 
| ExplosionType | explosionType () const | 
| int | minRange () const | 
| int | maxRange () const | 
| int | innerSplashRadius () const | 
| int | medianSplashRadius () const | 
| int | outerSplashRadius () const | 
| bool | targetsAir () const | 
| bool | targetsGround () const | 
| bool | targetsOwn () const | 
| WeaponType () | |
| WeaponType (int id) | |
| WeaponType (const WeaponType &other) | |
| WeaponType & | operator= (const WeaponType &other) | 
| bool | operator== (const WeaponType &other) const | 
| bool | operator!= (const WeaponType &other) const | 
| bool | operator< (const WeaponType &other) const | 
| int | getID () const | 
| std::string | getName () const | 
| int | damageAmount () const | 
| int | damageBonus () const | 
| int | damageCooldown () const | 
| int | damageFactor () const | 
| ExplosionType | explosionType () const | 
| int | minRange () const | 
| int | maxRange () const | 
| int | innerSplashRadius () const | 
| int | medianSplashRadius () const | 
| int | outerSplashRadius () const | 
| bool | targetsAir () const | 
| bool | targetsGround () const | 
| bool | targetsOwn () const | 
| Private Attributes | |
| int | id | 
Definition at line 9 of file WeaponType.h.
| FastEcslent::WeaponType::WeaponType | ( | ) | 
| FastEcslent::WeaponType::WeaponType | ( | int | id | ) | 
Definition at line 90 of file WeaponType.cpp.
References id, FastEcslent::initializingWeaponType, FastEcslent::WeaponTypes::Unknown, and FastEcslent::weaponTypeData.
| FastEcslent::WeaponType::WeaponType | ( | const WeaponType & | other | ) | 
| FastEcslent::WeaponType::WeaponType | ( | ) | 
| FastEcslent::WeaponType::WeaponType | ( | int | id | ) | 
| FastEcslent::WeaponType::WeaponType | ( | const WeaponType & | other | ) | 
| WeaponType & FastEcslent::WeaponType::operator= | ( | const WeaponType & | other | ) | 
| bool FastEcslent::WeaponType::operator== | ( | const WeaponType & | other | ) | const | 
| bool FastEcslent::WeaponType::operator!= | ( | const WeaponType & | other | ) | const | 
| bool FastEcslent::WeaponType::operator< | ( | const WeaponType & | other | ) | const | 
| int FastEcslent::WeaponType::getID | ( | ) | const | 
Returns a unique ID for this weapon type.
Definition at line 117 of file WeaponType.cpp.
References id.
Referenced by FastEcslent::WeaponTypes::init().
| std::string FastEcslent::WeaponType::getName | ( | ) | const | 
Returns the name of the weapon.
Definition at line 121 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::name, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::damageAmount | ( | ) | const | 
Returns the unit that can use this weapon. Returns the amount of damage that this weapon deals per attack.
Definition at line 125 of file WeaponType.cpp.
References FastEcslent::WeaponTypeInternal::damageAmount, id, and FastEcslent::weaponTypeData.
Referenced by FastEcslent::Weapon::dealDamageToTarget(), FastEcslent::Weapon::dealEnemySplashDamageToTarget(), and FastEcslent::Weapon::dealLineSplashDamageToTarget().
| int FastEcslent::WeaponType::damageBonus | ( | ) | const | 
Definition at line 129 of file WeaponType.cpp.
References FastEcslent::WeaponTypeInternal::damageBonus, id, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::damageCooldown | ( | ) | const | 
Returns the amount of cooldown time between attacks.
Definition at line 133 of file WeaponType.cpp.
References FastEcslent::WeaponTypeInternal::damageCooldown, id, and FastEcslent::weaponTypeData.
Referenced by FastEcslent::Weapon::dealDamageToTarget().
| int FastEcslent::WeaponType::damageFactor | ( | ) | const | 
Returns the amount that the damage increases per upgrade.
Definition at line 137 of file WeaponType.cpp.
References FastEcslent::WeaponTypeInternal::damageFactor, id, and FastEcslent::weaponTypeData.
| ExplosionType FastEcslent::WeaponType::explosionType | ( | ) | const | 
Returns the type of explosion that this weapon uses.
Definition at line 142 of file WeaponType.cpp.
References FastEcslent::WeaponTypeInternal::explosionType, id, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::minRange | ( | ) | const | 
Returns the minimum attack range of the weapon, measured in pixels, 0 for most things except WeaponTypes::Arclite_Shock_Cannon (the weapon of the Terran Siege Tank in Siege Mode).
Definition at line 146 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::minRange, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::maxRange | ( | ) | const | 
Returns the maximum attack range of the weapon, measured in pixels.
Definition at line 150 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::maxRange, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::innerSplashRadius | ( | ) | const | 
Inner radius used in splash damage calculations.
Definition at line 154 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::innerSplashRadius, and FastEcslent::weaponTypeData.
Referenced by FastEcslent::Weapon::tick().
| int FastEcslent::WeaponType::medianSplashRadius | ( | ) | const | 
Median radius used in splash damage calculations.
Definition at line 158 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::medianSplashRadius, and FastEcslent::weaponTypeData.
| int FastEcslent::WeaponType::outerSplashRadius | ( | ) | const | 
Outer radius used in splash damage calculations.
Definition at line 162 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::outerSplashRadius, and FastEcslent::weaponTypeData.
| bool FastEcslent::WeaponType::targetsAir | ( | ) | const | 
Returns true if this weapon can attack air units.
Definition at line 166 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::targetsAir, and FastEcslent::weaponTypeData.
| bool FastEcslent::WeaponType::targetsGround | ( | ) | const | 
Returns true if this weapon can attack ground units.
Definition at line 170 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::targetsGround, and FastEcslent::weaponTypeData.
| bool FastEcslent::WeaponType::targetsOwn | ( | ) | const | 
Definition at line 174 of file WeaponType.cpp.
References id, FastEcslent::WeaponTypeInternal::targetsOwn, and FastEcslent::weaponTypeData.
| WeaponType& FastEcslent::WeaponType::operator= | ( | const WeaponType & | other | ) | 
| bool FastEcslent::WeaponType::operator== | ( | const WeaponType & | other | ) | const | 
| bool FastEcslent::WeaponType::operator!= | ( | const WeaponType & | other | ) | const | 
| bool FastEcslent::WeaponType::operator< | ( | const WeaponType & | other | ) | const | 
| int FastEcslent::WeaponType::getID | ( | ) | const | 
Returns a unique ID for this weapon type.
| std::string FastEcslent::WeaponType::getName | ( | ) | const | 
Returns the name of the weapon.
| int FastEcslent::WeaponType::damageAmount | ( | ) | const | 
Returns the unit that can use this weapon. Returns the amount of damage that this weapon deals per attack.
| int FastEcslent::WeaponType::damageBonus | ( | ) | const | 
| int FastEcslent::WeaponType::damageCooldown | ( | ) | const | 
Returns the amount of cooldown time between attacks.
| int FastEcslent::WeaponType::damageFactor | ( | ) | const | 
Returns the amount that the damage increases per upgrade.
| ExplosionType FastEcslent::WeaponType::explosionType | ( | ) | const | 
Returns the type of explosion that this weapon uses.
| int FastEcslent::WeaponType::minRange | ( | ) | const | 
Returns the minimum attack range of the weapon, measured in pixels, 0 for most things except WeaponTypes::Arclite_Shock_Cannon (the weapon of the Terran Siege Tank in Siege Mode).
| int FastEcslent::WeaponType::maxRange | ( | ) | const | 
Returns the maximum attack range of the weapon, measured in pixels.
| int FastEcslent::WeaponType::innerSplashRadius | ( | ) | const | 
Inner radius used in splash damage calculations.
| int FastEcslent::WeaponType::medianSplashRadius | ( | ) | const | 
Median radius used in splash damage calculations.
| int FastEcslent::WeaponType::outerSplashRadius | ( | ) | const | 
Outer radius used in splash damage calculations.
| bool FastEcslent::WeaponType::targetsAir | ( | ) | const | 
Returns true if this weapon can attack air units.
| bool FastEcslent::WeaponType::targetsGround | ( | ) | const | 
Returns true if this weapon can attack ground units.
| bool FastEcslent::WeaponType::targetsOwn | ( | ) | const | 
| int FastEcslent::WeaponType::id  [private] | 
Definition at line 69 of file WeaponType.h.
Referenced by damageAmount(), damageBonus(), damageCooldown(), damageFactor(), explosionType(), getID(), getName(), innerSplashRadius(), maxRange(), medianSplashRadius(), minRange(), operator!=(), operator<(), operator=(), operator==(), outerSplashRadius(), targetsAir(), targetsGround(), targetsOwn(), and WeaponType().
 1.5.4
 1.5.4