Auctions and the protocol
Albert 'TSDgeos' Astals Cid <[email protected]>
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
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?