diff options
Added GameCase descriptions and a printing function for them
1 files changed, 12 insertions, 1 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/07-Practice-05.04.2022/GameCase.h | 13 |
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 <iostream> +#include <cstring> #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; }; |
