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

Method PickNext

game/src/main/java/jake2/game/PlayerTrail.java:119–134  ·  view source on GitHub ↗
(SubgameEntity self)

Source from the content-addressed store, hash-verified

117 }
118
119 SubgameEntity PickNext(SubgameEntity self) {
120
121 if (!trail_active)
122 return null;
123
124 int marker;
125 int n;
126 for (marker = trail_head, n = TRAIL_LENGTH; n > 0; n--) {
127 if (trail[marker].timestamp <= self.monsterinfo.trail_time)
128 marker = NEXT(marker);
129 else
130 break;
131 }
132
133 return trail[marker];
134 }
135
136 SubgameEntity LastSpot() {
137 return trail[PREV(trail_head)];

Callers 1

aiMethod · 0.80

Calls 1

NEXTMethod · 0.95

Tested by

no test coverage detected