mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
new protocol code
This commit is contained in:
parent
ba8d40211c
commit
888a64b0fd
25 changed files with 487 additions and 333 deletions
|
|
@ -85,11 +85,13 @@ void TableZone::toggleTapped()
|
|||
tapAll = true;
|
||||
break;
|
||||
}
|
||||
QList<Command *> cmdList;
|
||||
for (int i = 0; i < selectedItems.size(); i++) {
|
||||
CardItem *temp = qgraphicsitem_cast<CardItem *>(selectedItems[i]);
|
||||
if (temp->getTapped() != tapAll)
|
||||
setCardAttr(temp->getId(), "tapped", tapAll ? "1" : "0");
|
||||
cmdList.append(new Command_SetCardAttr(-1, name, temp->getId(), "tapped", tapAll ? "1" : "0"));
|
||||
}
|
||||
player->sendCommandContainer(new CommandContainer(cmdList));
|
||||
}
|
||||
|
||||
CardItem *TableZone::takeCard(int position, int cardId, const QString &cardName, bool canResize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue