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

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

#include <MouseKeyRegistrationCommand.h>

Inheritance diagram for MouseKeyRegistrationCommand:
Inheritance graph

Public Member Functions

 MouseKeyRegistrationCommand (Inputable *in, AZUL_MOUSE k, EventType e)
 Constructor for MouseKeyRegistrationCommand.
 
 MouseKeyRegistrationCommand (const MouseKeyRegistrationCommand &)=delete
 
MouseKeyRegistrationCommandoperator= (const MouseKeyRegistrationCommand &)=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_MOUSE 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 MouseKeyRegistrationCommand 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

◆ MouseKeyRegistrationCommand()

MouseKeyRegistrationCommand::MouseKeyRegistrationCommand ( Inputable * in,
AZUL_MOUSE k,
EventType e )

Constructor for MouseKeyRegistrationCommand.

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

Member Function Documentation

◆ Execute()

void MouseKeyRegistrationCommand::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: