31 #include "../singleton/Context.h"
32 #include "../../AbstractScene.h"
36 m_controller(controller),
51 m_controller->setPosition(coord.
x, coord.
y);
Abstract class to represent an observable. "Model" part of MVC component.
Abstract class to represent an observable. "Model" part of MVC component.
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
virtual std::vector< Property > getProperties()
Returns set of all properties.
An utility struct for representing 2D coordinates.
virtual void refresh()
Updated model state.
Abstract class to represent an observer. "View" part of MVC widget. All classes representing the grap...
virtual OutsideController * getController()
Returns the "Controller" part of the MVC.
OutsideObserver(OutsideController *controller, Observable *o)
Constructor.
virtual bool addObserver(Observer *o)=0
Adds the specified observer to the set of observers for this object. Reimplement this function in a O...
virtual Observable * getModel()
Returns the "Model" part of the MVC.
virtual Properties * getProperties() const
Reimplemented from Observer.
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...
Observable * m_model
"Model" part of MVC widget.
virtual ~OutsideObserver()
Destructor.
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...