aboutsummaryrefslogtreecommitdiff
path: root/week-4/Spel.h
diff options
context:
space:
mode:
Diffstat (limited to 'week-4/Spel.h')
-rw-r--r--week-4/Spel.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/week-4/Spel.h b/week-4/Spel.h
new file mode 100644
index 0000000..9ed04ba
--- /dev/null
+++ b/week-4/Spel.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <string>
+#include <map>
+
+#include "Persoon.h"
+
+class Spel {
+ public:
+ void setScore(std::string naam, int score);
+ void addScore(std::string naam, int score);
+ int getScore(std::string naam) const;
+ Persoon* getPersoon(std::string naam) const;
+ std::map<Persoon,int>& getScores();
+
+ private:
+ std::map<Persoon, int> scores;
+};