diff options
Diffstat (limited to 'plugins/WinterSpeak/src/Observer.h')
-rw-r--r-- | plugins/WinterSpeak/src/Observer.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/WinterSpeak/src/Observer.h b/plugins/WinterSpeak/src/Observer.h new file mode 100644 index 0000000000..ec52b2c4d3 --- /dev/null +++ b/plugins/WinterSpeak/src/Observer.h @@ -0,0 +1,17 @@ +#pragma once
+
+
+class Subject; +
+class Observer +{ + public: + virtual ~Observer(); + + //-------------------------------------------------------------------------- + // Description : Called by a subject that this observer is observing
+ // to signify a change in state
+ // Parameters : subject - the subject that changed + //-------------------------------------------------------------------------- + virtual void update(Subject &subject) = 0; +};
\ No newline at end of file |