aboutsummaryrefslogtreecommitdiff
path: root/Command.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
commit4cb7ca42003c177e3acc80075d7594e555966106 (patch)
treed2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /Command.h
parentd8289105193707daede1a5b59137f18e20f20aeb (diff)
fix command design pattern
Diffstat (limited to 'Command.h')
-rw-r--r--Command.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/Command.h b/Command.h
index b974784..0ad57f9 100644
--- a/Command.h
+++ b/Command.h
@@ -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;
};