Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <vector>
  3. #include "Soldier.hpp"
  4. class SquadCommander
  5. {
  6. public:
  7.  
  8. void OrderRetreat()
  9. {
  10. for(int index = 0; index < _squad.size(); ++index)
  11. {
  12. _squad[index].Flee();
  13. }
  14. }
  15.  
  16. void OrdertAttack()
  17. {
  18. for(int index = 0; index < _squad.size(); ++index)
  19. {
  20. _squad[index].Shoot();
  21. }
  22. }
  23.  
  24. private:
  25. std::vector<Soldier> _squad;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement