summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/Observer.h
blob: a66bd0ace7105cbeadd08a25b806911c1b0d59b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
};