From 2cf8d711c3dd110555c16913941f865841aa3175 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 6 Apr 2022 08:40:07 +0300 Subject: Fixed folder naming from yesterdays oop practice --- .../07-Practice-05.04.2022/GameCase.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Year 1/Object-oriented Programming/07-Practice-05.04.2022/GameCase.h (limited to 'Year 1/Object-oriented Programming/07-Practice-05.04.2022/GameCase.h') diff --git a/Year 1/Object-oriented Programming/07-Practice-05.04.2022/GameCase.h b/Year 1/Object-oriented Programming/07-Practice-05.04.2022/GameCase.h new file mode 100644 index 0000000..bf5030f --- /dev/null +++ b/Year 1/Object-oriented Programming/07-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; +}; -- cgit v1.3.1-26-gb76a