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

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

#include <KeyRegistrationCommand.h>

Inheritance diagram for KeyRegistrationCommand:
Inheritance graph

Public Member Functions

 KeyRegistrationCommand (Inputable *in, AZUL_KEY k, EventType e)
 Constructor for KeyRegistrationCommand.
 
 KeyRegistrationCommand (const KeyRegistrationCommand &)=delete
 
KeyRegistrationCommandoperator= (const KeyRegistrationCommand &)=delete
 
void Execute () override
 Executes the registration 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 register.
 
EventType eventType
 The event type to register.
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ KeyRegistrationCommand()

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

Constructor for KeyRegistrationCommand.

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

Member Function Documentation

◆ Execute()

void KeyRegistrationCommand::Execute ( )
overridevirtual

Executes the registration 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: