diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
commit | 4cb7ca42003c177e3acc80075d7594e555966106 (patch) | |
tree | d2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /Command.h | |
parent | d8289105193707daede1a5b59137f18e20f20aeb (diff) |
fix command design pattern
Diffstat (limited to 'Command.h')
-rw-r--r-- | Command.h | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -1,29 +1,7 @@ #pragma once -class Museum; -class View; -class ViewController; - class Command { public: - Command(const Command * c); - Command(Museum & m, View & v, ViewController & c); - Command(Museum & m, View & v); - Command(Museum & m); - -protected: - Museum & get_museum(); - View & get_view(); - ViewController & get_controller(); - -protected: - void set_museum(Museum &); - void set_view(View &); - void set_controller(ViewController &); - -private: - Museum * museum = nullptr; - View * view = nullptr; - ViewController * controller = nullptr; + virtual void execute() = 0; }; |