EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Traversal.h
Go to the documentation of this file.
1#pragma once
2#include "QuestionList.h"
3
6
7class Traversal {
8private:
9 QuestionList questions;
10 std::vector<Option> currentPath;
11
12public:
13 Traversal();
14 Traversal(QuestionList questions);
15 void traverse(Option choiceMade);
16 std::string printCurrentPath();
17
18
19};
Definition Option.h:7
Each level should have an instance of QuestionList Used to store and access the questions of a level-...
Definition QuestionList.h:9
Traversal()
Definition Traversal.cpp:3
void traverse(Option choiceMade)
Should be called everytime the player makes a choice/answers a question-picks an option.
Definition Traversal.cpp:12
std::string printCurrentPath()
Prints feedback on players choices made.
Definition Traversal.cpp:17