* Determines if the item uses ammo. * @return True if ammo is used. */
| 349 | * @return True if ammo is used. |
| 350 | */ |
| 351 | bool BattleItem::needsAmmo() const |
| 352 | { |
| 353 | return !(_ammoItem == this); // no ammo for this weapon is needed |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Sets the item's ammo item. |
no outgoing calls
no test coverage detected