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

#include <Option.h>

Public Member Functions

 Option ()
 Additional attribute to be added State transitionState; or Sceneclass transitionScene for the state/scene that corresponds to an Option.
 
 Option (int timeExhausted, std::string description, bool correct)
 
double getTimeExhausted ()
 
bool getCorrect ()
 
std::string getdescription ()
 
void updateTimeExhausted (int time)
 
void updateDescription (std::string description)
 
void updateCorrect (bool correct)
 
bool operator== (Option anotherOption)
 used to check if two Option instances are the same
 
std::string printOption ()
 

Constructor & Destructor Documentation

◆ Option() [1/2]

Option::Option ( )

Additional attribute to be added State transitionState; or Sceneclass transitionScene for the state/scene that corresponds to an Option.

◆ Option() [2/2]

Option::Option ( int timeExhausted,
std::string description,
bool correct )

Member Function Documentation

◆ getCorrect()

bool Option::getCorrect ( )
inline

◆ getdescription()

std::string Option::getdescription ( )
inline

◆ getTimeExhausted()

double Option::getTimeExhausted ( )
inline

◆ operator==()

bool Option::operator== ( Option anotherOption)

used to check if two Option instances are the same

◆ printOption()

std::string Option::printOption ( )

◆ updateCorrect()

void Option::updateCorrect ( bool correct)

◆ updateDescription()

void Option::updateDescription ( std::string description)

◆ updateTimeExhausted()

void Option::updateTimeExhausted ( int time)

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