* Make sure no crafts are chasing this target. */
| 36 | * Make sure no crafts are chasing this target. |
| 37 | */ |
| 38 | Target::~Target() |
| 39 | { |
| 40 | for (size_t i = 0; i < _followers.size(); ++i) |
| 41 | { |
| 42 | Craft *craft = dynamic_cast<Craft*>(_followers[i]); |
| 43 | if (craft) |
| 44 | { |
| 45 | craft->returnToBase(); |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Loads the target from a YAML file. |
nothing calls this directly
no test coverage detected