Brunot
Loading...
Searching...
No Matches
KeyPressedMessage Struct Reference

#include <KeyPressedMessage.h>

Inheritance diagram for KeyPressedMessage:
[legend]
Collaboration diagram for KeyPressedMessage:
[legend]

Public Member Functions

 KeyPressedMessage (unsigned int keyInputted)
 KeyPressedMessage (const KeyPressedMessage &other)=default
 KeyPressedMessage (KeyPressedMessage &&other) noexcept=default
auto operator= (const KeyPressedMessage &other) -> KeyPressedMessage &=default
auto operator= (KeyPressedMessage &&other) noexcept -> KeyPressedMessage &=default
 ~KeyPressedMessage () override=default
auto clone () const -> std::unique_ptr< Message > override
auto getKeyPressed () const -> unsigned int
Public Member Functions inherited from Message
 Message ()=default
 Message (const Message &other)=default
 Message (Message &&other) noexcept=default
auto operator= (const Message &other) -> Message &=default
auto operator= (Message &&other) noexcept -> Message &=default
virtual ~Message ()=default
virtual auto load (Stream &stream) -> void
virtual auto save (Stream &stream) const -> void
template<typename T>
auto convertMessageTo () const -> const T *
 A function that converts messages to the specific type so you don't need to call static_cast yourself
Mainly exists for cleaner code.

Private Attributes

unsigned int keyPressed {0}

Constructor & Destructor Documentation

◆ KeyPressedMessage() [1/3]

KeyPressedMessage::KeyPressedMessage ( unsigned int keyInputted)
Here is the caller graph for this function:

◆ KeyPressedMessage() [2/3]

KeyPressedMessage::KeyPressedMessage ( const KeyPressedMessage & other)
default
Here is the call graph for this function:

◆ KeyPressedMessage() [3/3]

KeyPressedMessage::KeyPressedMessage ( KeyPressedMessage && other)
defaultnoexcept
Here is the call graph for this function:

◆ ~KeyPressedMessage()

KeyPressedMessage::~KeyPressedMessage ( )
overridedefault

Member Function Documentation

◆ clone()

auto KeyPressedMessage::clone ( ) const->std::unique_ptr< Message >
inlineoverridevirtual

Reimplemented from Message.

Here is the call graph for this function:

◆ getKeyPressed()

auto KeyPressedMessage::getKeyPressed ( ) const->unsignedint

◆ operator=() [1/2]

auto KeyPressedMessage::operator= ( const KeyPressedMessage & other) ->KeyPressedMessage &=default
default
Here is the call graph for this function:

◆ operator=() [2/2]

auto KeyPressedMessage::operator= ( KeyPressedMessage && other) ->KeyPressedMessage &=default
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ keyPressed

unsigned int KeyPressedMessage::keyPressed {0}
private

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