Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 06-Practice-05.04.2022 / GameCase.h
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/06-Practice-05.04.2022/GameCase.h13
diff --git a/Year 1/Object-oriented Programming/06-Practice-05.04.2022/GameCase.h b/Year 1/Object-oriented Programming/06-Practice-05.04.2022/GameCase.h
new file mode 100644
index 0000000..bf5030f
--- /dev/null
+++ b/Year 1/Object-oriented Programming/06-Practice-05.04.2022/GameCase.h
@@ -0,0 +1,13 @@
+#include "Player.h"
+
+class GameCase {
+ char command;
+ bool (*func)(const Player&, double&);
+
+public:
+ GameCase();
+ GameCase(char, bool f(const Player&, double&));
+
+ char get_comm() const;
+ bool exec(const Player&, double&) const;
+};