new protocol code

This commit is contained in:
Max-Wilhelm Bruker 2010-02-26 17:28:02 +01:00
parent ba8d40211c
commit 888a64b0fd
25 changed files with 487 additions and 333 deletions

View file

@ -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)