Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 07-Practice-05.04.2022 / Game.h
diff options
context:
space:
mode:
1 files changed, 7 insertions, 2 deletions
-rw-r--r--Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h9
diff --git a/Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h b/Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h
index 8915196..3b3bb0b 100644
--- a/Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h
+++ b/Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h
@@ -1,3 +1,6 @@
+#ifndef GAME_HEADER
+#define GAME_HEADER
+
#include <iostream>
#include <stdlib.h> // srand, time and rand
#include "Player.h"
@@ -19,7 +22,7 @@ class Game {
void copyFrom(const Game&);
void free();
- TurnResult turn(double&);
+ TurnResult turn(double&) const;
public:
Game(const GameCase*, unsigned);
@@ -27,5 +30,7 @@ public:
Game& operator=(const Game&);
~Game();
- void play(Player&);
+ void play(Player&) const;
};
+
+#endif