Command to deregister an alarm for a GameObject. More...
#include <AlarmDeregistrationCommand.h>

Public Member Functions | |
| AlarmDeregistrationCommand (Alarmable *al, AlarmableManager::ALARM_ID i) | |
Constructor for the AlarmDeregistrationCommand class. | |
| AlarmDeregistrationCommand (const AlarmDeregistrationCommand &)=delete | |
| AlarmDeregistrationCommand & | operator= (const AlarmDeregistrationCommand &)=delete |
| void | Execute () override |
| Executes the command to deregister the alarm. | |
Public Member Functions inherited from CommandBase | |
| virtual | ~CommandBase ()=default |
| Destructor for CommandBase. | |
Public Attributes | |
| Alarmable * | ptrAl |
Pointer to the Alarmable object. | |
| AlarmableManager::ALARM_ID | id |
| The alarm ID to deregister. | |
Command to deregister an alarm for a GameObject.
The AlarmDeregistrationCommand class is responsible for deregistering an alarm for a GameObject. It inherits from CommandBase and uses the AlarmableManager to remove the alarm registration.
| AlarmDeregistrationCommand::AlarmDeregistrationCommand | ( | Alarmable * | al, |
| AlarmableManager::ALARM_ID | i ) |
Constructor for the AlarmDeregistrationCommand class.
| al | Pointer to the Alarmable object. |
| i | The alarm ID to deregister. |
|
overridevirtual |
Executes the command to deregister the alarm.
Implements CommandBase.
