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

Method getNextEvent

source/game/Player.cpp:149–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149const PlayerEvent* Player::getNextEvent(uint32_t& index) const
150{
151 if(mEvents.empty())
152 return nullptr;
153
154 index = (index + 1) % mEvents.size();
155
156 return mEvents[index];
157}
158
159uint32_t Player::getSpellCooldownTurns(SpellType spellType) const
160{

Callers 1

keyPressedNormalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected