1 2 3 4 5 6 7 8 9 10 11
#include "Bullet.hpp" bool Bullet::decreaseAmount(int qnt) { if (_amount >= qnt) { _amount = _amount - qnt; return true; } else { return false; } }