ChoiceTask
#include "Tutorial/Tutorial.h"
Inherits from TutorialElement
Public Functions
Name | |
---|---|
ChoiceTask(std::string question, std::vector< std::string > choices, int correctChoice) | |
virtual void | acceptRenderer(ITutorialRenderer * tutorialRenderer) override |
Public Attributes
Name | |
---|---|
std::vector< std::string > | m_choices |
int | m_correctChoice |
Additional inherited members
Public Functions inherited from TutorialElement
Name | |
---|---|
TutorialElement() | |
TutorialElement(std::string content) | |
virtual | ~TutorialElement() =default |
Public Attributes inherited from TutorialElement
Name | |
---|---|
std::string | m_content |
Detailed Description
cpp
struct ChoiceTask;
struct ChoiceTask;
Todo: Not implemented!
Public Functions Documentation
function ChoiceTask
cpp
inline ChoiceTask(
std::string question,
std::vector< std::string > choices,
int correctChoice
)
inline ChoiceTask(
std::string question,
std::vector< std::string > choices,
int correctChoice
)
function acceptRenderer
cpp
inline virtual void acceptRenderer(
ITutorialRenderer * tutorialRenderer
) override
inline virtual void acceptRenderer(
ITutorialRenderer * tutorialRenderer
) override
Reimplements: TutorialElement::acceptRenderer
Public Attributes Documentation
variable m_choices
cpp
std::vector< std::string > m_choices;
std::vector< std::string > m_choices;
variable m_correctChoice
cpp
int m_correctChoice;
int m_correctChoice;
Updated on 2024-11-06 at 20:16:53 +0000