Keeps track of the choices that the player has made throughout the level and is used to present feedback on progress at any point during the level. More...
#include <Traversal.h>
Public Member Functions | |
| Traversal () | |
| Traversal (QuestionList questions) | |
| void | traverse (Option choiceMade) |
| Should be called everytime the player makes a choice/answers a question-picks an option. | |
| std::string | printCurrentPath () |
| Prints feedback on players choices made. | |
Keeps track of the choices that the player has made throughout the level and is used to present feedback on progress at any point during the level.
| Traversal::Traversal | ( | ) |
| Traversal::Traversal | ( | QuestionList | questions | ) |
| std::string Traversal::printCurrentPath | ( | ) |
Prints feedback on players choices made.
| void Traversal::traverse | ( | Option | choiceMade | ) |
Should be called everytime the player makes a choice/answers a question-picks an option.