currentPage property

Page currentPage
getter/setter pair

The current Page of the Story.

When Story is just started then the root Page and the currentPage are identical. When player reads the Story, the currentPage is referenced to the current page. When player makes a choice and goes to choice page, then the currentPage is reassigned to the nextPage. When player starts Story from the beginning by calling:

story.reset();

Then the currentPage is reassigned to the root page.

Implementation

Page currentPage;