[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: Re: [atlantik-devel] Auctions and the protocol
From: Albert Astals Cid <astals11 () terra ! es>
Date: 2003-06-10 16:41:54
[Download RAW message or body]
>On Fri, Jun 06, 2003 at 10:35:01PM +0200, Albert 'TSDgeos' Astals Cid wrote:
>> Add pTmp->setBoolProperty("can_auction", m_auctionsEnabled); to
>> Game::start(Player *pInput)
>>
>> Add p->setBoolProperty("can_auction", m_auctionsEnabled); to
>> Game::addPlayer(Player *p, bool isMaster)
>
>Not sure if that works properly, wouldn't the auction button be enabled at
>all times when auctions are enabled? I think m_auctionsEnabled is a
>configuration setting, not a variable that changes througout the game.
True, but auctions don't change with the game, i mean, at the beginning they
are enabled or they are not, they can't be enabled during the play of the
game.
So changing
m_auctionEstate->setEnabled(player->canAuction());
to
m_auctionEstate->setEnabled(player->canAuction() && player->hasTurn());
in atlantik.cpp should ensure that auctions are enabled only when they should,
isn't it?
_______________________________________________
atlantik-devel mailing list
atlantik-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic