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

Command to handle the deregistration of a key event for an Inputable object. More...

#include <KeyDeregistrationCommand.h>

Inheritance diagram for KeyDeregistrationCommand:
Inheritance graph

Public Member Functions

 KeyDeregistrationCommand (Inputable *in, AZUL_KEY k, EventType e)
 Constructor for KeyDeregistrationCommand.
 
 KeyDeregistrationCommand (const KeyDeregistrationCommand &)=delete
 
KeyDeregistrationCommandoperator= (const KeyDeregistrationCommand &)=delete
 
void Execute () override
 Executes the deregistration command for the key event.
 
- Public Member Functions inherited from CommandBase
virtual ~CommandBase ()=default
 Destructor for CommandBase.
 

Public Attributes

InputableptrIn
 Pointer to the Inputable object.
 
AZUL_KEY key
 The key to deregister.
 
EventType eventType
 The event type to deregister.
 

Detailed Description

Command to handle the deregistration of a key event for an Inputable object.

The KeyDeregistrationCommand class is responsible for executing the deregistration of a key event for an Inputable object. It inherits from the CommandBase class and overrides the Execute method to perform the deregistration action.

Constructor & Destructor Documentation

◆ KeyDeregistrationCommand()

KeyDeregistrationCommand::KeyDeregistrationCommand ( Inputable * in,
AZUL_KEY k,
EventType e )

Constructor for KeyDeregistrationCommand.

Parameters
inPointer to the Inputable object.
kThe key to deregister.
eThe event type to deregister.

Member Function Documentation

◆ Execute()

void KeyDeregistrationCommand::Execute ( )
overridevirtual

Executes the deregistration command for the key event.

Implements CommandBase.

Here is the call graph for this function:

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