A base class for all objects that need access to a MainController. More...
Public Member Functions | |
ControlledObject (MainController *m) | |
Creates a new ControlledObject. More... | |
const MainController * | getMainController () const noexcept |
Provides read-only access to the main controller. More... | |
MainController * | getMainController () noexcept |
Provides write access to the main controller. More... | |
A base class for all objects that need access to a MainController.
If you want to have access to the main controller object, derive the class from this object and pass a pointer to the MainController instance in the constructor.
ControlledObject | ( | MainController * | m | ) |
Creates a new ControlledObject.
The MainController must be supplied.
|
inlinenoexcept |
Provides read-only access to the main controller.
|
inlinenoexcept |
Provides write access to the main controller.
Use this if you want to make changes.