| 314 | currentEnergy = user->getEnergy(); |
| 315 | } |
| 316 | void UseTechTest::checkPosition() |
| 317 | { |
| 318 | if (targetUnit != NULL) |
| 319 | { |
| 320 | if (user->getDistance(targetUnit->getPosition())<32*4) |
| 321 | { |
| 322 | isInPosition = true; |
| 323 | } |
| 324 | } |
| 325 | else |
| 326 | { |
| 327 | isInPosition = true; |
| 328 | } |
| 329 | } |
| 330 | void UseTechTest::useTech() |
| 331 | { |
| 332 | bool used=false; |
nothing calls this directly
no test coverage detected