doContinue method
void
doContinue()
Jump to the next node (passage) on the current page.
Throws an exception CannotContinue when the current page has no next nodes. This means that either the book has ended and the consumer of this API must check story.currentPage.isTheEnd or the player must be presented with the list of next choices to be selected.
Implementation
void doContinue() {
if (canContinue()) {
currentPage.nextNode();
_logCurrentPassageToHistory();
} else {
throw CannotContinue;
}
}