mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 11:33:25 -08:00
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
|