aboutsummaryrefslogtreecommitdiff
path: root/Command.h
diff options
context:
space:
mode:
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;
};