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

Method think

game/src/main/java/jake2/game/GameAI.java:280–300  ·  view source on GitHub ↗
(SubgameEntity self, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

278 public static EntThinkAdapter walkmonster_start_go = new EntThinkAdapter() {
279 public String getID() { return "walkmonster_start_go"; }
280 public boolean think(SubgameEntity self, GameExportsImpl gameExports) {
281
282 if (0 == (self.spawnflags & 2) && gameExports.level.time < 1) {
283 M.M_droptofloor.think(self, gameExports);
284
285 if (self.groundentity != null)
286 if (!M.M_walkmove(self, 0, 0, gameExports))
287 gameExports.gameImports.dprintf(self.classname + " in solid at "
288 + Lib.vtos(self.s.origin) + "\n");
289 }
290
291 if (0 == self.yaw_speed)
292 self.yaw_speed = 40;
293 self.viewheight = 25;
294
295 Monster.monster_start_go(self, gameExports);
296
297 if ((self.spawnflags & 2) != 0)
298 Monster.monster_triggered_start.think(self, gameExports);
299 return true;
300 }
301 };
302
303 public static void walkmonster_start(SubgameEntity self, GameExportsImpl gameExports) {

Callers 5

ai_run_meleeMethod · 0.45
ai_run_missileMethod · 0.45
ai_checkattackMethod · 0.45
HuntTargetMethod · 0.45
aiMethod · 0.45

Calls 5

M_walkmoveMethod · 0.95
vtosMethod · 0.95
monster_start_goMethod · 0.95
monster_startMethod · 0.95
dprintfMethod · 0.65

Tested by

no test coverage detected