MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / GetSuperWeaponCount

Method GetSuperWeaponCount

src/Ext/BuildingType/Body.cpp:10–14  ·  view source on GitHub ↗

Assuming SuperWeapon & SuperWeapon2 are used (for the moment)

Source from the content-addressed store, hash-verified

8
9// Assuming SuperWeapon & SuperWeapon2 are used (for the moment)
10int BuildingTypeExt::ExtData::GetSuperWeaponCount() const
11{
12 // The user should only use SuperWeapon and SuperWeapon2 if the attached sw count isn't bigger than 2
13 return 2 + this->SuperWeapons.size();
14}
15
16int BuildingTypeExt::ExtData::GetSuperWeaponIndex(const int index, HouseClass* pHouse) const
17{

Callers 1

HasSuperWeaponMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected