MCPcopy Create free account
hub / github.com/catabriga/graphwar / nextTurn

Method nextTurn

src/Graphwar/Player.java:172–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 public boolean nextTurn()
173 {
174 for(int i=0; i<numSoldiers; i++)
175 {
176 currentTurnSoldier = (currentTurnSoldier+1)%numSoldiers;
177
178 if(soldiers[currentTurnSoldier].isAlive())
179 {
180 return true;
181 }
182 }
183
184 return false;
185 }
186}

Callers

nothing calls this directly

Calls 1

isAliveMethod · 0.80

Tested by

no test coverage detected