MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / decreaseShoot

Method decreaseShoot

source/traps/Trap.h:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }

Callers 1

doUpkeepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected