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

#include <CardPositionSelectedMessage.h>

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

Public Member Functions

 CardPositionSelectedMessage ()=default
 CardPositionSelectedMessage (int x, int y)
 CardPositionSelectedMessage (const CardPositionSelectedMessage &other)=default
 CardPositionSelectedMessage (CardPositionSelectedMessage &&other) noexcept=default
auto operator= (const CardPositionSelectedMessage &other) -> CardPositionSelectedMessage &=default
auto operator= (CardPositionSelectedMessage &&other) noexcept -> CardPositionSelectedMessage &=default
 ~CardPositionSelectedMessage () override=default
auto clone () const -> std::unique_ptr< Message > override
auto load (Stream &stream) -> void override
auto save (Stream &stream) const -> void override
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
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.

Public Attributes

int posX
int posY

Friends

auto to_json (json &j, const CardPositionSelectedMessage &obj) ->void
auto from_json (const json &j, CardPositionSelectedMessage &obj) ->void

Constructor & Destructor Documentation

◆ CardPositionSelectedMessage() [1/4]

CardPositionSelectedMessage::CardPositionSelectedMessage ( )
default
Here is the caller graph for this function:

◆ CardPositionSelectedMessage() [2/4]

CardPositionSelectedMessage::CardPositionSelectedMessage ( int x,
int y )
Here is the call graph for this function:

◆ CardPositionSelectedMessage() [3/4]

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

◆ CardPositionSelectedMessage() [4/4]

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

◆ ~CardPositionSelectedMessage()

CardPositionSelectedMessage::~CardPositionSelectedMessage ( )
overridedefault

Member Function Documentation

◆ clone()

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

Reimplemented from Message.

Here is the call graph for this function:

◆ load()

auto CardPositionSelectedMessage::load ( Stream & stream) ->void
overridevirtual

Reimplemented from Message.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ save()

auto CardPositionSelectedMessage::save ( Stream & stream) const->void
overridevirtual

Reimplemented from Message.

◆ from_json

auto from_json ( const json & j,
CardPositionSelectedMessage & obj )->void
friend

◆ to_json

auto to_json ( json & j,
const CardPositionSelectedMessage & obj )->void
friend

Member Data Documentation

◆ posX

int CardPositionSelectedMessage::posX

◆ posY

int CardPositionSelectedMessage::posY

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