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

List:       atlantik-devel
Subject:    [atlantik-devel] Auctions and the protocol
From:       "Albert 'TSDgeos' Astals Cid" <tsdgeos () terra ! es>
Date:       2003-06-04 23:07:04
[Download RAW message or body]

I've seen that if you create a game without auctions, the auction button is 
disabled but the Move->auction menu is still enabled. 

This is because in atlantik.cpp
void Atlantik::playerChanged(Player *player)
{
	...
	m_auctionEstate->setEnabled(player->canBuy());
	...
}

the estate menu is enabled with canBuy(), that is an error (i think) so i 
think the server should send along with the first 

<monopd><playerupdate playerid="35" money="0" doublecount="0" jailcount="0" 
bankrupt="0" jailed="0" hasturn="0" spectator="0" can_roll="0" 
canrollagain="0" can_buyestate="0"/></monopd>

something like can_auction="0"

the in so in atlantik_network.cpp processNode(QDomNode n) update the player 
and add to the player somthing like can_auction().

What do you think?

Can i try to add support to this in the monopd code?
_______________________________________________
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