From 6ec95b5d689aa38b373ef948ba67ba59235c0eb9 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 6 Apr 2022 10:50:30 +0300 Subject: Added GameCase descriptions and a printing function for them --- .../07-Practice-05.04.2022/GameCase.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (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 index 8efd039..37a1b21 100644 --- 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 @@ -1,13 +1,24 @@ +#include +#include #include "Player.h" class GameCase { char command; + char* description; bool (*func)(double&); + void copyFrom(const GameCase&); + void free(); public: GameCase(); - GameCase(char, bool f(double&)); + GameCase(char, const char*, bool f(double&)); + + GameCase(const GameCase&); + GameCase& operator=(const GameCase&); + ~GameCase(); char get_comm() const; + void print() const; + bool exec(double&) const; }; -- cgit v1.3.1-26-gb76a