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

Method upkeepEffect

source/creatureeffect/CreatureEffect.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <istream>
24
25bool CreatureEffect::upkeepEffect(Creature& creature)
26{
27 if(mNbTurnsEffect <= 0)
28 return false;
29
30 --mNbTurnsEffect;
31 applyEffect(creature);
32 return true;
33}
34
35void CreatureEffect::exportToStream(std::ostream& os) const
36{

Callers 1

doUpkeepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected