generated from mcmarius/oop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestion.h
35 lines (26 loc) · 775 Bytes
/
Question.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Created by raduc on 07.05.2023.
//
#ifndef OOP_QUESTION_H
#define OOP_QUESTION_H
#include "Characteristics.h"
#include <string>
#include "SFML/Graphics.hpp"
#include "SFML/Window.hpp"
class Question {
protected:
std::string question;
Characteristics<int> characteristics;
double answer = 0;
public:
double getAnswer() const;
public:
Question(const std::string & question, Characteristics<int> & characteristics);
Question(const std::string & question);
Question() = default;
virtual ~Question();
virtual void showQuestion(sf::RenderWindow &window) = 0;
virtual std::string handleEvent(sf::Event event, sf::RenderWindow& window) = 0;
const Characteristics<int> &getCharacteristics() const;
};
#endif //OOP_QUESTION_H