|
Brunot
|
#include <PlayCardMessage.h>
Public Member Functions | |
| PlayCardMessage (Card *cardPlayed, int xPos, int yPos, gobj::UUID uuidObj) | |
| PlayCardMessage (const PlayCardMessage &other)=default | |
| PlayCardMessage (PlayCardMessage &&other) noexcept=default | |
| auto | operator= (const PlayCardMessage &other) -> PlayCardMessage &=default |
| auto | operator= (PlayCardMessage &&other) noexcept -> PlayCardMessage &=default |
| ~PlayCardMessage () override=default | |
| auto | clone () const -> std::unique_ptr< Message > override |
| auto | getX () const -> int |
| auto | getY () const -> int |
| auto | getCard () const -> Card * |
| auto | getUUID () const -> gobj::UUID |
| 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 | |
| int | x |
| int | y |
| gobj::UUID | uuid |
| Card * | card |
| PlayCardMessage::PlayCardMessage | ( | Card * | cardPlayed, |
| int | xPos, | ||
| int | yPos, | ||
| gobj::UUID | uuidObj ) |
|
default |
|
defaultnoexcept |
|
overridedefault |
|
inlineoverridevirtual |
| auto PlayCardMessage::getCard | ( | ) | const->Card * |
| auto PlayCardMessage::getUUID | ( | ) | const->gobj::UUID |
| auto PlayCardMessage::getX | ( | ) | const->int |
| auto PlayCardMessage::getY | ( | ) | const->int |
|
default |
|
defaultnoexcept |
|
private |
|
private |
|
private |
|
private |