SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
AlarmDeregistrationCommand Class Reference

Command to deregister an alarm for a GameObject. More...

#include <AlarmDeregistrationCommand.h>

Inheritance diagram for AlarmDeregistrationCommand:
Inheritance graph

Public Member Functions

 AlarmDeregistrationCommand (Alarmable *al, AlarmableManager::ALARM_ID i)
 Constructor for the AlarmDeregistrationCommand class.
 
 AlarmDeregistrationCommand (const AlarmDeregistrationCommand &)=delete
 
AlarmDeregistrationCommandoperator= (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

AlarmableptrAl
 Pointer to the Alarmable object.
 
AlarmableManager::ALARM_ID id
 The alarm ID to deregister.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AlarmDeregistrationCommand()

AlarmDeregistrationCommand::AlarmDeregistrationCommand ( Alarmable * al,
AlarmableManager::ALARM_ID i )

Constructor for the AlarmDeregistrationCommand class.

Parameters
alPointer to the Alarmable object.
iThe alarm ID to deregister.

Member Function Documentation

◆ Execute()

void AlarmDeregistrationCommand::Execute ( )
overridevirtual

Executes the command to deregister the alarm.

Implements CommandBase.

Here is the call graph for this function:

The documentation for this class was generated from the following files: