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

Method maxEnergy

bwapi/BWAPILIB/Source/UnitType.cpp:2222–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2220 return defaultMaxSP[this->getID()];
2221 }
2222 int UnitType::maxEnergy() const
2223 {
2224 if ( this->isSpellcaster() )
2225 return this->isHero() ? 250 : 200;
2226 return 0;
2227 }
2228 int UnitType::armor() const
2229 {
2230 return defaultArmorAmount[this->getID()];

Callers

nothing calls this directly

Calls 2

isSpellcasterMethod · 0.95
isHeroMethod · 0.95

Tested by

no test coverage detected