Add token creation for opponent board items (#2744)

This commit is contained in:
Zach H 2017-06-28 23:09:10 -04:00 committed by GitHub
parent 5abfda49be
commit e8dbdc3c6d
4 changed files with 69 additions and 28 deletions

View file

@ -593,6 +593,11 @@ void TabGame::adminLockChanged(bool lock)
sayEdit->setVisible(v);
}
bool TabGame::isSpectator()
{
return spectator;
}
void TabGame::actGameInfo()
{
DlgCreateGame dlg(gameInfo, roomGameTypes);
@ -735,7 +740,7 @@ void TabGame::processGameEventContainer(const GameEventContainer &cont, Abstract
case GameEvent::GAME_SAY: eventSpectatorSay(event.GetExtension(Event_GameSay::ext), playerId, context); break;
case GameEvent::LEAVE: eventSpectatorLeave(event.GetExtension(Event_Leave::ext), playerId, context); break;
default: {
qDebug() << "unhandled spectator game event";
qDebug() << "unhandled spectator game event" << eventType;
break;
}
}