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

Method think

game/src/main/java/jake2/game/Monster.java:273–284  ·  view source on GitHub ↗
(SubgameEntity self, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

271 public static EntThinkAdapter monster_think = new EntThinkAdapter() {
272 public String getID() { return "monster_think";}
273 public boolean think(SubgameEntity self, GameExportsImpl gameExports) {
274
275 M.M_MoveFrame(self, gameExports);
276 if (self.linkcount != self.monsterinfo.linkcount) {
277 self.monsterinfo.linkcount = self.linkcount;
278 M.M_CheckGround(self, gameExports);
279 }
280 M.setWaterLevel(self, gameExports);
281 M.applyWaterEffects(self, gameExports);
282 M.M_SetEffects(self, gameExports.level.time);
283 return true;
284 }
285 };
286
287 public static EntThinkAdapter monster_triggered_spawn = new EntThinkAdapter() {

Callers 1

monster_start_goMethod · 0.45

Calls 9

M_MoveFrameMethod · 0.95
M_CheckGroundMethod · 0.95
setWaterLevelMethod · 0.95
applyWaterEffectsMethod · 0.95
M_SetEffectsMethod · 0.95
KillBoxMethod · 0.95
monster_start_goMethod · 0.95
FoundTargetMethod · 0.95
linkentityMethod · 0.65

Tested by

no test coverage detected