Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
arrow_data.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_ARROW_DATA_H
2
#define COCKATRICE_ARROW_DATA_H
3
4
#include <QColor>
5
#include <QString>
6
7
class
ServerInfo_Arrow
;
8
9
struct
ArrowData
10
{
11
int
creatorId
= -1;
12
bool
isLocalCreator
=
false
;
13
int
id
= -1;
14
int
startPlayerId
= -1;
15
QString
startZone
=
""
;
16
int
startCardId
= -1;
17
int
targetPlayerId
= -1;
18
QString
targetZone
=
""
;
19
int
targetCardId
= -1;
20
QColor
color
=
""
;
21
22
static
ArrowData
fromProto
(
const
ServerInfo_Arrow
&arrow,
int
creatorId
,
bool
isLocalCreator
);
23
24
bool
isPlayerTargeted
()
const
25
{
26
return
targetZone
.isEmpty();
27
}
28
};
29
30
#endif
// COCKATRICE_ARROW_DATA_H
ArrowData
Definition
arrow_data.h:10
ArrowData::fromProto
static ArrowData fromProto(const ServerInfo_Arrow &arrow, int creatorId, bool isLocalCreator)
Definition
arrow_data.cpp:6
ArrowData::isPlayerTargeted
bool isPlayerTargeted() const
Definition
arrow_data.h:24
ArrowData::targetZone
QString targetZone
Definition
arrow_data.h:18
ArrowData::targetCardId
int targetCardId
Definition
arrow_data.h:19
ArrowData::startCardId
int startCardId
Definition
arrow_data.h:16
ArrowData::startZone
QString startZone
Definition
arrow_data.h:15
ArrowData::color
QColor color
Definition
arrow_data.h:20
ArrowData::startPlayerId
int startPlayerId
Definition
arrow_data.h:14
ArrowData::isLocalCreator
bool isLocalCreator
Definition
arrow_data.h:12
ArrowData::creatorId
int creatorId
Definition
arrow_data.h:11
ArrowData::targetPlayerId
int targetPlayerId
Definition
arrow_data.h:17
ServerInfo_Arrow
Definition
serverinfo_arrow.proto:3
cockatrice
src
game
board
arrow_data.h
Generated by
1.18.0