[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] Determine if submit mode in PrintBoardAs
You could try overloading Submit() or PrintAs() and do this:
private_variable = type; // put the type where the whole object can see it
Game::PrintAs(...); // call the parent function.
private_variable = 0; // reset the type
~ John Williams
On Thu, 16 May 2002, Bob Lafleur wrote:
> I would like to know if my game's PrintBoardAs is printing a board with a
> submitted move. Unfortunately, the type doesn't get passed to PrintBoardAs.
> I did try using submit.Count() to determine if a move is submitted. This
> more or less works, but if a player submits a move that results in an error,
> submit.Count() remains true, so if the player does a showas, the game still
> thinks a move is submitted.
>
> Any other suggestions?
>
>
> To unsubscribe, send a message to esquire@gamerz.net with
> unsubscribe pbmserv-dev@gamerz.net
> as the BODY of the message. The SUBJECT is ignored.
>