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

Classes

struct  GameCommand

Public Attributes

optional sint32 start_player_id = 1 [default = -1]
optional string start_zone = 2
optional ListOfCardsToMove cards_to_move = 3
optional sint32 target_player_id = 4 [default = -1]
optional string target_zone = 5
optional sint32 x = 6 [default = -1]
optional sint32 y = 7 [default = -1]
optional bool is_reversed = 8 [default = false]

Detailed Description

Command to move an amount of cards from one zone to another index/coordinate or another zone

Member Data Documentation

◆ cards_to_move

optional ListOfCardsToMove Command_MoveCard::cards_to_move = 3

List of the cards and their new properties

◆ is_reversed

optional bool Command_MoveCard::is_reversed = 8 [default = false]

Inverts the x coordinate to apply from the end of the target zone instead of the start

◆ start_player_id

optional sint32 Command_MoveCard::start_player_id = 1 [default = -1]

The player the zone the cards are in belongs to

◆ start_zone

optional string Command_MoveCard::start_zone = 2

The zone the cards start in

◆ target_player_id

optional sint32 Command_MoveCard::target_player_id = 4 [default = -1]

The player the zone the cards will be moved to belongs to

◆ target_zone

optional string Command_MoveCard::target_zone = 5

The zone the cards will be moved to

◆ x

optional sint32 Command_MoveCard::x = 6 [default = -1]

New x coordinate of the first card in the list

◆ y

optional sint32 Command_MoveCard::y = 7 [default = -1]

New y coordinate of the first card in the list


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