Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ServerInfo_Card Struct Reference
Collaboration diagram for ServerInfo_Card:
[legend]

Public Attributes

optional sint32 id = 1 [default = -1]
optional string name = 2
optional sint32 x = 3 [default = -1]
optional sint32 y = 4 [default = -1]
optional bool face_down = 5
optional bool tapped = 6
optional bool attacking = 7
optional string color = 8
optional string pt = 9
optional string annotation = 10
optional bool destroy_on_zone_change = 11
optional bool doesnt_untap = 12
repeated ServerInfo_CardCounter counter_list = 13
optional sint32 attach_player_id = 14 [default = -1]
optional string attach_zone = 15
optional sint32 attach_card_id = 16 [default = -1]
optional string provider_id = 17

Detailed Description

Container for all the properties of a single card

Member Data Documentation

◆ annotation

optional string ServerInfo_Card::annotation = 10

an optional string placed over the card

◆ attach_card_id

optional sint32 ServerInfo_Card::attach_card_id = 16 [default = -1]

the unique id of the card in that zone

◆ attach_player_id

optional sint32 ServerInfo_Card::attach_player_id = 14 [default = -1]

the player that owns the card this is attached to

◆ attach_zone

optional string ServerInfo_Card::attach_zone = 15

the zone of the card this is attached to

◆ attacking

optional bool ServerInfo_Card::attacking = 7

if the card is marked as attacking

◆ color

optional string ServerInfo_Card::color = 8

the card's color

◆ counter_list

repeated ServerInfo_CardCounter ServerInfo_Card::counter_list = 13

list of counters on the card

◆ destroy_on_zone_change

optional bool ServerInfo_Card::destroy_on_zone_change = 11

whether the card should be deleted when removed from the table, like a token

◆ doesnt_untap

optional bool ServerInfo_Card::doesnt_untap = 12

whether the card should not be untapped when the untap command is sent

◆ face_down

optional bool ServerInfo_Card::face_down = 5

if the card is face_down, hiding its information

◆ id

optional sint32 ServerInfo_Card::id = 1 [default = -1]

unique card id in this zone

◆ name

optional string ServerInfo_Card::name = 2

name of this kind of card

◆ provider_id

optional string ServerInfo_Card::provider_id = 17

unique id of this kind of card, extends the name to specify a specific printing of a card

◆ pt

optional string ServerInfo_Card::pt = 9

the power/toughness field, displayed on the bottom right

◆ tapped

optional bool ServerInfo_Card::tapped = 6

if the card is tapped, turned sideways

◆ x

optional sint32 ServerInfo_Card::x = 3 [default = -1]

x coordinate in zone

◆ y

optional sint32 ServerInfo_Card::y = 4 [default = -1]

y coordinate in zone


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