mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
some token code
This commit is contained in:
parent
1cd63375ba
commit
f553fd7456
15 changed files with 99 additions and 21 deletions
|
|
@ -95,7 +95,19 @@ void PlayerArea::setSize(qreal width, qreal height)
|
|||
}
|
||||
|
||||
Player::Player(const ServerInfo_User &info, int _id, bool _local, TabGame *_parent)
|
||||
: QObject(_parent), game(_parent), shortcutsActive(false), defaultNumberTopCards(3), lastTokenDestroy(true), id(_id), active(false), local(_local), mirrored(false), handVisible(false), conceded(false), dialogSemaphore(false)
|
||||
: QObject(_parent),
|
||||
game(_parent),
|
||||
shortcutsActive(false),
|
||||
defaultNumberTopCards(3),
|
||||
lastTokenDestroy(true),
|
||||
id(_id),
|
||||
active(false),
|
||||
local(_local),
|
||||
mirrored(false),
|
||||
handVisible(false),
|
||||
conceded(false),
|
||||
dialogSemaphore(false),
|
||||
deck(0)
|
||||
{
|
||||
userInfo = new ServerInfo_User;
|
||||
userInfo->CopyFrom(info);
|
||||
|
|
@ -876,7 +888,7 @@ void Player::actRollDie()
|
|||
|
||||
void Player::actCreateToken()
|
||||
{
|
||||
DlgCreateToken dlg;
|
||||
DlgCreateToken dlg(deck);
|
||||
if (!dlg.exec())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue