* Changes the ruleset for the craft's type. * @param rules Pointer to ruleset. * @warning NOT TO BE USED IN NORMAL CIRCUMSTANCES. */
| 267 | * @warning NOT TO BE USED IN NORMAL CIRCUMSTANCES. |
| 268 | */ |
| 269 | void Craft::setRules(RuleCraft *rules) |
| 270 | { |
| 271 | _rules = rules; |
| 272 | _weapons.clear(); |
| 273 | for (int i = 0; i < _rules->getWeapons(); ++i) |
| 274 | { |
| 275 | _weapons.push_back(0); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * Returns the craft's unique ID. Each craft |
no test coverage detected