mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
* [Refactor] Move game logic into libcockatrice_game * [Refactor] Include card_state.h in player_actions.h * [Game] Inject settings providers into libcockatrice_game, drop Widgets * [Game] Follow base rename to createCardRequested after rebase * [Game] Drop unused CardItem forward declaration * [Game] Fix includes after moving game logic into libcockatrice_game --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
30 lines
633 B
C++
30 lines
633 B
C++
#ifndef COCKATRICE_ARROW_DATA_H
|
|
#define COCKATRICE_ARROW_DATA_H
|
|
|
|
#include <QColor>
|
|
#include <QString>
|
|
|
|
class ServerInfo_Arrow;
|
|
|
|
struct ArrowData
|
|
{
|
|
int creatorId = -1;
|
|
bool isLocalCreator = false;
|
|
int id = -1;
|
|
int startPlayerId = -1;
|
|
QString startZone = "";
|
|
int startCardId = -1;
|
|
int targetPlayerId = -1;
|
|
QString targetZone = "";
|
|
int targetCardId = -1;
|
|
QColor color = "";
|
|
|
|
static ArrowData fromProto(const ServerInfo_Arrow &arrow, int creatorId, bool isLocalCreator);
|
|
|
|
bool isPlayerTargeted() const
|
|
{
|
|
return targetZone.isEmpty();
|
|
}
|
|
};
|
|
|
|
#endif // COCKATRICE_ARROW_DATA_H
|