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

#include <PlayCardMessage.h>

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

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
Cardcard

Constructor & Destructor Documentation

◆ PlayCardMessage() [1/3]

PlayCardMessage::PlayCardMessage ( Card * cardPlayed,
int xPos,
int yPos,
gobj::UUID uuidObj )
Todo
: update PlayCardMessage to only carry card
Here is the caller graph for this function:

◆ PlayCardMessage() [2/3]

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

◆ PlayCardMessage() [3/3]

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

◆ ~PlayCardMessage()

PlayCardMessage::~PlayCardMessage ( )
overridedefault

Member Function Documentation

◆ clone()

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

Reimplemented from Message.

Here is the call graph for this function:

◆ getCard()

auto PlayCardMessage::getCard ( ) const->Card *

◆ getUUID()

auto PlayCardMessage::getUUID ( ) const->gobj::UUID

◆ getX()

auto PlayCardMessage::getX ( ) const->int

◆ getY()

auto PlayCardMessage::getY ( ) const->int

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ card

Card* PlayCardMessage::card
private

◆ uuid

gobj::UUID PlayCardMessage::uuid
private

◆ x

int PlayCardMessage::x
private

◆ y

int PlayCardMessage::y
private

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