-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenie.h
More file actions
32 lines (25 loc) · 785 Bytes
/
Genie.h
File metadata and controls
32 lines (25 loc) · 785 Bytes
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
#ifndef GENIE_H
#define GENIE_H
#include <vector>
#include <fstream>
#include "Player.h"
#include "Enums.h"
class Genie : public Player
{
public:
// Constructor
Genie();
// Destructor
~Genie();
// Accessor functions
std::string getName() const;
std::string getComment(Performance playerPerformance) const;
std::string newCode(short codeLength, short codeRange);
private:
std::vector<std::string> goodComments;
std::vector<std::string> averageComments;
std::vector<std::string> badComments;
std::vector<std::string>* commentTypes[3] = { &goodComments, &averageComments, &badComments };
void loadComments(std::vector<std::string>& commentsVector, std::string commentsFile);
};
#endif // !GENIE_H