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:
Commit27cf6165d0592f842ed667a8da3013489213c2a1 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-06 11:03:55 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-06 11:03:55 +0300
Files8f619fbcb516887410b11d695a7cd381e90125c3 /Year 1/Object-oriented Programming/07-Practice-05.04.2022/Game.h
uni-projects-27cf6165d0592f842ed667a8da3013489213c2a1.tar
uni-projects-27cf6165d0592f842ed667a8da3013489213c2a1.tar.gz
uni-projects-27cf6165d0592f842ed667a8da3013489213c2a1.zip
Parent6ec95b5d689aa38b373ef948ba67ba59235c0eb9 (diff)
Separated NumberGamble game into its own set of header and cpp files
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