(SubgameEntity self, float dist, GameExportsImpl gameExports)
| 367 | public static AIAdapter ai_turn = new AIAdapter() { |
| 368 | public String getID() { return "ai_turn";} |
| 369 | public void ai(SubgameEntity self, float dist, GameExportsImpl gameExports) { |
| 370 | |
| 371 | if (dist != 0) |
| 372 | M.M_walkmove(self, self.s.angles[Defines.YAW], dist, gameExports); |
| 373 | |
| 374 | if (GameUtil.FindTarget(self, gameExports)) |
| 375 | return; |
| 376 | |
| 377 | M.rotateToIdealYaw(self); |
| 378 | } |
| 379 | }; |
| 380 | |
| 381 |
no test coverage detected