This pull request follows #508, by consisting of the graphical part of the notification-based feedback system.
It adds a new interface, Notification, and two new classes, NotificationHandler and ToastNotification.
A single test file effectively test both classes (they work together).
The NotificationHandler is a Singleton whose spawn() method can be called from anywhere to display a Toast notification on the screen. A ToastNotification object can be even more customized by using the detailed constructor of the class.
Every class implementing the Notification interface can be used with the NotificationHandler.
This pull request follows #508, by consisting of the graphical part of the notification-based feedback system.
It adds a new interface,
Notification
, and two new classes,NotificationHandler
andToastNotification
. A single test file effectively test both classes (they work together).The
NotificationHandler
is a Singleton whosespawn()
method can be called from anywhere to display a Toast notification on the screen. AToastNotification
object can be even more customized by using the detailed constructor of the class.Every class implementing the
Notification
interface can be used with theNotificationHandler
.