Guest User

Untitled

a guest
Feb 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. //-------------------------------- BB 1 ----------------------------------
  2. for (int i = NUM_SOLDIERS / 2; i < NUM_SOLDIERS; ++i) {
  3. //-------------------------------- BB 2 ----------------------------------
  4. auto &soldier = state.soldiers[i];
  5. if (soldier.hp == 0)
  6. //-------------------------------- BB 3 ----------------------------------
  7. continue;
  8. //-------------------------------- BB 4 ----------------------------------
  9. for (auto enemy_soldier : state.enemy_soldiers) {
  10. //-------------------------------- BB 5 ----------------------------------
  11. if (enemy_soldier.hp != 0) {
  12. //-------------------------------- BB 6 ----------------------------------
  13. soldier.soldier_target = enemy_soldier.id;
  14. break;
  15. //-------------------------------- BB 7 ----------------------------------
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment