| 328 | } |
| 329 | } |
| 330 | void UseTechTest::useTech() |
| 331 | { |
| 332 | bool used=false; |
| 333 | if (targetPosition != Positions::None) |
| 334 | used=user->useTech(techType,targetPosition); |
| 335 | else if (targetUnit != NULL) |
| 336 | used=user->useTech(techType,targetUnit); |
| 337 | else |
| 338 | used=user->useTech(techType); |
| 339 | if (used==false) |
| 340 | { |
| 341 | log("Error: %s",Broodwar->getLastError().c_str()); |
| 342 | } |
| 343 | |
| 344 | usedTech = true; |
| 345 | startFrame = Broodwar->getFrameCount(); |
| 346 | } |
| 347 | void UseTechTest::update() |
| 348 | { |
| 349 | if (running == false) return; |
no test coverage detected