Re: Auctions and the protocol

Rob Kaper <[email protected]>
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
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
[email protected] | temporary safety deserve neither liberty nor safety."
www.capsi.com | - Benjamin Franklin, Historical Review of Pennsylvania, 1759

_______________________________________________
atlantik-devel mailing list
[email protected]
http://mail.kde.org/mailman/listinfo/atlantik-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+5hQwtppIl2G1SjcRAjpQAJwMWFpoRioYLuL1GHkZpxvhgBMj2wCggaDi
7NnIZgYL1EgoAbpnRjZGn5g=
=PglP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.