EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Traversal Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Traversal() [1/2]

Traversal::Traversal ( )

◆ Traversal() [2/2]

Traversal::Traversal ( QuestionList questions)

Member Function Documentation

◆ printCurrentPath()

std::string Traversal::printCurrentPath ( )

Prints feedback on players choices made.

◆ traverse()

void Traversal::traverse ( Option choiceMade)

Should be called everytime the player makes a choice/answers a question-picks an option.


The documentation for this class was generated from the following files: