MCPcopy Create free account
hub / github.com/bwapi/bwapi / damage

Method damage

bwapi/BWAPILIB/Source/Player.cpp:106–112  ·  view source on GitHub ↗

-------------------------------------------- DAMAGE ------------------------------------------------------

Source from the content-addressed store, hash-verified

104}
105//-------------------------------------------- DAMAGE ------------------------------------------------------
106int PlayerInterface::damage(WeaponType wpn) const
107{
108 int dmg = wpn.damageAmount();
109 dmg += getUpgradeLevel(wpn.upgradeType()) * wpn.damageBonus();
110 dmg *= wpn.damageFactor();
111 return dmg;
112}
113//-------------------------------------------- TEXT COLOR --------------------------------------------------
114char PlayerInterface::getTextColor() const
115{

Callers 1

getDamageFromImplFunction · 0.80

Calls 4

damageAmountMethod · 0.80
upgradeTypeMethod · 0.80
damageBonusMethod · 0.80
damageFactorMethod · 0.80

Tested by

no test coverage detected