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

Method getDamageTo

bwapi/BWAPILIB/Source/Game.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 return getDamageFromImpl(fromType, toType, fromPlayer, toPlayer);
92 }
93 int Game::getDamageTo(UnitType toType, UnitType fromType, Player toPlayer, Player fromPlayer) const
94 {
95 // Get self if fromPlayer not provided
96 if ( fromPlayer == nullptr )
97 fromPlayer = this->self();
98
99 return getDamageFromImpl(fromType, toType, fromPlayer, toPlayer);
100 }
101 //-------------------------------------- BUILD LOCATION --------------------------------------------
102 const int MAX_RANGE = 64;
103 class PlacementReserve

Callers

nothing calls this directly

Calls 2

getDamageFromImplFunction · 0.85
selfMethod · 0.45

Tested by

no test coverage detected