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

Method think

game/src/main/java/jake2/game/monsters/M_Chick.java:646–654  ·  view source on GitHub ↗
(SubgameEntity self, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

644 static EntThinkAdapter ChickMoan = new EntThinkAdapter() {
645 public String getID() { return "ChickMoan"; }
646 public boolean think(SubgameEntity self, GameExportsImpl gameExports) {
647 if (Lib.random() < 0.5)
648 gameExports.gameImports.sound(self, Defines.CHAN_VOICE, sound_idle1, 1,
649 Defines.ATTN_IDLE, 0);
650 else
651 gameExports.gameImports.sound(self, Defines.CHAN_VOICE, sound_idle2, 1,
652 Defines.ATTN_IDLE, 0);
653 return true;
654 }
655 };
656
657 static mframe_t chick_frames_fidget[] = new mframe_t[] {

Callers

nothing calls this directly

Calls 14

randomMethod · 0.95
VectorSetMethod · 0.95
fire_hitMethod · 0.95
randMethod · 0.95
AngleVectorsMethod · 0.95
G_ProjectSourceMethod · 0.95
VectorCopyMethod · 0.95
VectorSubtractMethod · 0.95
VectorNormalizeMethod · 0.95
monster_fire_rocketMethod · 0.95
rangeMethod · 0.95
visibleMethod · 0.95

Tested by

no test coverage detected