* Remove a Production from the Base * @param p A pointer to a Production */
| 1000 | * @param p A pointer to a Production |
| 1001 | */ |
| 1002 | void Base::removeProduction (Production * p) |
| 1003 | { |
| 1004 | _engineers += p->getAssignedEngineers(); |
| 1005 | std::vector<Production *>::iterator iter = std::find (_productions.begin (), _productions.end (), p); |
| 1006 | if (iter != _productions.end ()) |
| 1007 | { |
| 1008 | _productions.erase(iter); |
| 1009 | } |
| 1010 | } |
| 1011 | |
| 1012 | /** |
| 1013 | * Get the list of Base Production's |
no test coverage detected