mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 04:50:01 -08:00
[Refactor] Build Command_MoveCard in game/ instead of the zone views (#7417)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
4972ebcb97
commit
563833a88a
8 changed files with 98 additions and 78 deletions
22
cockatrice/src/game/player/card_move_request.h
Normal file
22
cockatrice/src/game/player/card_move_request.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* @file card_move_request.h
|
||||
* @ingroup GameLogicActions
|
||||
*/
|
||||
//! \todo Document this file.
|
||||
|
||||
#ifndef COCKATRICE_CARD_MOVE_REQUEST_H
|
||||
#define COCKATRICE_CARD_MOVE_REQUEST_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
/**
|
||||
* @brief Describes one card a view wants moved, in logic terms rather than wire terms.
|
||||
*/
|
||||
struct CardMoveRequest
|
||||
{
|
||||
int cardId = -1;
|
||||
bool faceDown = false;
|
||||
QString pt = {};
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_CARD_MOVE_REQUEST_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue