| 94 | { mIsActivated = activated; } |
| 95 | |
| 96 | bool decreaseShoot() |
| 97 | { |
| 98 | if(mNbShootsBeforeDeactivation < 0) |
| 99 | return true; |
| 100 | |
| 101 | if(mNbShootsBeforeDeactivation > 1) |
| 102 | { |
| 103 | --mNbShootsBeforeDeactivation; |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | inline bool isActivated() const |
| 111 | { return mIsActivated; } |