Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <vector>
- #include "Soldier.hpp"
- class SquadCommander
- {
- public:
- void OrderRetreat()
- {
- for(int index = 0; index < _squad.size(); ++index)
- {
- _squad[index].Flee();
- }
- }
- void OrdertAttack()
- {
- for(int index = 0; index < _squad.size(); ++index)
- {
- _squad[index].Shoot();
- }
- }
- private:
- std::vector<Soldier> _squad;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement