[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    Re: [atlantik-devel] Auctions and the protocol
From:       Rob Kaper <cap () capsi ! com>
Date:       2003-06-10 17:24:00
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tue, Jun 10, 2003 at 06:41:54PM +0200, Albert Astals Cid wrote:
> 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?

Yes, but that's client logic and I always want to minimize that: the client
displays and renders, but all logic is on the server side. It's easier for
clients if they can just directly evaluate a game-state variable than having
to know the rules of the game, in this case that "an auction is available as
side-effect of a purchase opportunity".

But this would work as a workaround until I have a chance to have the proper
fix in the form of more generalization. :)

Rob
-- 
Rob Kaper     | "They that can give up essential liberty to obtain a little
cap@capsi.com | temporary safety deserve neither liberty nor safety."
www.capsi.com | - Benjamin Franklin, Historical Review of Pennsylvania, 1759

[Attachment #5 (application/pgp-signature)]

_______________________________________________
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