largely modified to make more sense to me with regards to the terminology.
Three new files are introduced here:
Observable.h
Observer.h
MazeGeneratorSignalDescriptors.h, which is a placeholder (and example) for the signals that a MazeGenerator will emit, and UI elements will subscribe to hear.
This introduces my signal / slots mechanism based on the Observer pattern. This is code from:
https://thehermeticvault.com/software-development/making-boost-signals2-more-oop-friendly
largely modified to make more sense to me with regards to the terminology.
Three new files are introduced here:
Observable
.hObserver.h
MazeGeneratorSignalDescriptors.h
, which is a placeholder (and example) for the signals that aMazeGenerator
will emit, and UI elements will subscribe to hear.