MCPcopy Create free account
hub / github.com/demoth/jake2 / ai

Method ai

game/src/main/java/jake2/game/GameAI.java:369–378  ·  view source on GitHub ↗
(SubgameEntity self, float dist, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

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

Callers 1

M_MoveFrameMethod · 0.45

Calls 15

M_walkmoveMethod · 0.95
FindTargetMethod · 0.95
rotateToIdealYawMethod · 0.95
M_MoveToGoalMethod · 0.95
VectorSubtractMethod · 0.95
vectoyawMethod · 0.95
ai_checkattackMethod · 0.95
VectorLengthMethod · 0.95
ai_run_slideMethod · 0.95
VectorCopyMethod · 0.95
AngleVectorsMethod · 0.95
VectorSetMethod · 0.95

Tested by

no test coverage detected