Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Event_MoveCard Struct Reference

Classes

struct  GameEvent

Public Attributes

optional sint32 card_id = 1 [default = -1]
optional string card_name = 2
optional sint32 start_player_id = 3 [default = -1]
optional string start_zone = 4
optional sint32 position = 5 [default = -1]
optional sint32 target_player_id = 6 [default = -1]
optional string target_zone = 7
optional sint32 x = 8 [default = -1]
optional sint32 y = 9 [default = -1]
optional sint32 new_card_id = 10 [default = -1]
optional bool face_down = 11
optional string new_card_provider_id = 12

Detailed Description

Sent by the server to signal a single card was moved to update the client state

Member Data Documentation

◆ card_id

optional sint32 Event_MoveCard::card_id = 1 [default = -1]

The card id in the original zone

◆ card_name

optional string Event_MoveCard::card_name = 2

The name of the card in case it was not known yet

◆ face_down

optional bool Event_MoveCard::face_down = 11

If the card is face down, face down cards will not show their name

◆ new_card_id

optional sint32 Event_MoveCard::new_card_id = 10 [default = -1]

The new id of the card if the card moved zone

◆ new_card_provider_id

optional string Event_MoveCard::new_card_provider_id = 12

The provider id of the card in case it was not known yet. Extends the name to supply a specific printing of that type of card.

◆ position

optional sint32 Event_MoveCard::position = 5 [default = -1]

The original position that the card was at. In zones without y coordinate, this corresponds with the previous x coordinate of the card. In zones with y coordinate, this value is not used.

◆ start_player_id

optional sint32 Event_MoveCard::start_player_id = 3 [default = -1]

The player whose zone the card started in

◆ start_zone

optional string Event_MoveCard::start_zone = 4

The original zone

◆ target_player_id

optional sint32 Event_MoveCard::target_player_id = 6 [default = -1]

The player who owns the new zone the card is in

◆ target_zone

optional string Event_MoveCard::target_zone = 7

The new zone the card is in

◆ x

optional sint32 Event_MoveCard::x = 8 [default = -1]

The new x coordinate (or new position for zones with no y coordinate)

◆ y

optional sint32 Event_MoveCard::y = 9 [default = -1]

The new y coordinate


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