Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-------------------------------- BB 1 ----------------------------------
- for (int i = NUM_SOLDIERS / 2; i < NUM_SOLDIERS; ++i) {
- //-------------------------------- BB 2 ----------------------------------
- auto &soldier = state.soldiers[i];
- if (soldier.hp == 0)
- //-------------------------------- BB 3 ----------------------------------
- continue;
- //-------------------------------- BB 4 ----------------------------------
- for (auto enemy_soldier : state.enemy_soldiers) {
- //-------------------------------- BB 5 ----------------------------------
- if (enemy_soldier.hp != 0) {
- //-------------------------------- BB 6 ----------------------------------
- soldier.soldier_target = enemy_soldier.id;
- break;
- //-------------------------------- BB 7 ----------------------------------
- }
- }
- }
Add Comment
Please, Sign In to add comment