|
Brunot
|
#include <DrawCardMessage.h>
Public Member Functions | |
| DrawCardMessage (int playerNum, const Card &card) | |
| DrawCardMessage (const DrawCardMessage &other)=default | |
| DrawCardMessage (DrawCardMessage &&other) noexcept=default | |
| auto | operator= (const DrawCardMessage &other) -> DrawCardMessage &=default |
| auto | operator= (DrawCardMessage &&other) noexcept -> DrawCardMessage &=default |
| ~DrawCardMessage () override=default | |
| auto | clone () const -> std::unique_ptr< Message > override |
| auto | getPlayerNumber () const -> int |
| auto | getDrawnCard () const -> const Card & |
| 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 | playerNumber |
| const Card & | drawnCard |
| DrawCardMessage::DrawCardMessage | ( | int | playerNum, |
| const Card & | card ) |
|
default |
|
defaultnoexcept |
|
overridedefault |
|
inlineoverridevirtual |
| auto DrawCardMessage::getDrawnCard | ( | ) | const->constCard & |
| auto DrawCardMessage::getPlayerNumber | ( | ) | const->int |
|
default |
|
defaultnoexcept |
|
private |
|
private |