mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
local mode is working again
This commit is contained in:
parent
38e4781624
commit
f115342e47
24 changed files with 340 additions and 555 deletions
|
|
@ -156,7 +156,7 @@ void DeckViewContainer::readyStart()
|
|||
{
|
||||
Command_ReadyStart cmd;
|
||||
cmd.set_ready(!readyStartButton->getReadyStart());
|
||||
static_cast<TabGame *>(parent())->sendGameCommand(cmd);
|
||||
static_cast<TabGame *>(parent())->sendGameCommand(cmd, playerId);
|
||||
}
|
||||
|
||||
void DeckViewContainer::sideboardPlanChanged()
|
||||
|
|
@ -165,7 +165,7 @@ void DeckViewContainer::sideboardPlanChanged()
|
|||
QList<MoveCardToZone *> newPlan = deckView->getSideboardPlan();
|
||||
for (int i = 0; i < newPlan.size(); ++i)
|
||||
cmd.add_move_list()->CopyFrom(newPlan[i]->toPB());
|
||||
static_cast<TabGame *>(parent())->sendGameCommand(cmd);
|
||||
static_cast<TabGame *>(parent())->sendGameCommand(cmd, playerId);
|
||||
}
|
||||
|
||||
void DeckViewContainer::setReadyStart(bool ready)
|
||||
|
|
@ -509,12 +509,6 @@ void TabGame::sendGameCommand(const google::protobuf::Message &command, int play
|
|||
client->sendCommand(prepareGameCommand(command));
|
||||
}
|
||||
|
||||
void TabGame::sendCommandContainer(CommandContainer &cont, int playerId)
|
||||
{
|
||||
cont.set_game_id(gameId);
|
||||
getClientForPlayer(playerId)->sendCommand(cont);
|
||||
}
|
||||
|
||||
PendingCommand *TabGame::prepareGameCommand(const ::google::protobuf::Message &cmd)
|
||||
{
|
||||
CommandContainer cont;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue