MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getVelocityForThrow

Method getVelocityForThrow

game/state/shared/aequipment.cpp:1036–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036bool AEquipment::getVelocityForThrow(const TileMap &map, int strength, Vec3<float> startPos,
1037 Vec3<int> target, float &velocityXY, float &velocityZ) const
1038{
1039 return getVelocityForThrowLaunch(nullptr, map, strength, getWeight(), startPos, target,
1040 velocityXY, velocityZ);
1041}
1042
1043bool AEquipment::getCanThrow(const BattleUnit &unit, Vec3<int> target)
1044{

Callers 2

hopToMethod · 0.80
throwItemMethod · 0.80

Calls 1

getThrownItemLocationMethod · 0.80

Tested by

no test coverage detected