* Spends a bullet from the ammo in this item. * @return True if there are bullets left. */
| 193 | * @return True if there are bullets left. |
| 194 | */ |
| 195 | bool BattleItem::spendBullet() |
| 196 | { |
| 197 | _ammoQuantity--; |
| 198 | if (_ammoQuantity == 0) |
| 199 | return false; |
| 200 | else |
| 201 | return true; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Gets the item's owner. |
no outgoing calls
no test coverage detected