MCPcopy Create free account
hub / github.com/EasyRPG/Player / RepeatNext

Method RepeatNext

src/game_battlealgorithm.cpp:487–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487bool Game_BattleAlgorithm::AlgorithmBase::RepeatNext(bool require_valid) {
488 ++cur_repeat;
489 if (cur_repeat >= repeat || (require_valid && !IsCurrentTargetValid())) {
490 cur_repeat = 0;
491 return false;
492 }
493 return true;
494}
495
496bool Game_BattleAlgorithm::AlgorithmBase::IsCurrentTargetValid() const {
497 if (current_target == targets.end()) {

Calls

no outgoing calls

Tested by

no test coverage detected