Brunot
Loading...
Searching...
No Matches
DrawCardMessage Class Reference

#include <DrawCardMessage.h>

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

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 CarddrawnCard

Constructor & Destructor Documentation

◆ DrawCardMessage() [1/3]

DrawCardMessage::DrawCardMessage ( int playerNum,
const Card & card )
Here is the caller graph for this function:

◆ DrawCardMessage() [2/3]

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

◆ DrawCardMessage() [3/3]

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

◆ ~DrawCardMessage()

DrawCardMessage::~DrawCardMessage ( )
overridedefault

Member Function Documentation

◆ clone()

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

Reimplemented from Message.

Here is the call graph for this function:

◆ getDrawnCard()

auto DrawCardMessage::getDrawnCard ( ) const->constCard &

◆ getPlayerNumber()

auto DrawCardMessage::getPlayerNumber ( ) const->int

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ drawnCard

const Card& DrawCardMessage::drawnCard
private

◆ playerNumber

int DrawCardMessage::playerNumber
private

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