MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setNextTopic

Method setNextTopic

game/ui/ufopaedia/ufopaediacategoryview.cpp:549–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549void UfopaediaCategoryView::setNextTopic()
550{
551 do
552 {
553 if (this->position_iterator == this->category->entries.end())
554 {
555 this->position_iterator = this->category->entries.begin();
556 }
557 else
558 {
559 this->position_iterator++;
560 }
561 // Loop until we find the end (which shows the category intro screen)
562 // or a visible entry
563 } while (this->position_iterator != this->category->entries.end() &&
564 !this->position_iterator->second->isVisible());
565 this->setFormData();
566 return;
567}
568
569void UfopaediaCategoryView::setPreviousTopic()
570{

Callers

nothing calls this directly

Calls 4

setFormDataMethod · 0.95
endMethod · 0.80
beginMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected