EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Option.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include "State.h"
4#include "SceneClass.h"
5
6
7class Option {
8private:
9 std::string description;
10
12 bool correct;
13
15 int timeExhausted;
16
18
19public:
20 Option();
21 Option(int timeExhausted, std::string description, bool correct);
22 inline double getTimeExhausted() { return timeExhausted; }
23 inline bool getCorrect() { return correct; }
24 inline std::string getdescription() { return description; }
25 void updateTimeExhausted(int time);
26 void updateDescription(std::string description);
27 void updateCorrect(bool correct);
29 bool operator==(Option anotherOption);
30 std::string printOption();
31};
Definition Option.h:7
bool operator==(Option anotherOption)
used to check if two Option instances are the same
Definition Option.cpp:34
void updateDescription(std::string description)
Definition Option.cpp:26
bool getCorrect()
Definition Option.h:23
void updateCorrect(bool correct)
Definition Option.cpp:30
void updateTimeExhausted(int time)
Definition Option.cpp:20
std::string getdescription()
Definition Option.h:24
std::string printOption()
Definition Option.cpp:44
double getTimeExhausted()
Definition Option.h:22
Option()
Additional attribute to be added State transitionState; or Sceneclass transitionScene for the state/s...
Definition Option.cpp:4