Thanks. That's what I needed.

I added a boolean gameIsOver() method to EndTurnDelegate.

The TicTacToePlayer can then call that method in its start() method; if the game is over, the method goes into an infinite loop and never returns.

Works great.

Thanks,
Lane


On 5/21/07, Sean Bridges <sbridges.geo@yahoo.com> wrote:
Currently there isn't a way to do that.

For a&a, the plan was to just put up a message on the
screen saying who had won.  The players could then
keep playing if they wanted to.

The easiest way to do this is to have the ui detect
that the game is over, put a message on the screen,
and not return from the IGamePlayer.start(...) method.
The user won't be able to do anything but leave the
game.

Sean

--- Lane Schwartz <dowobeha@gmail.com> wrote:

> Um, right. I had seen that.
>
> What I meant was, what do I need to do in the
> delegate so that when the
> EndTurn delegate recognizes an endgame condition, no
> more steps occur?
>
> Thanks,
> Lane
>
> On 5/21/07, Sean Bridges <sbridges.geo@yahoo.com>
> wrote:
> >
> > Follow the same logic in TripleaFrame.leaveGame().
> >
> > Sean
> >
> > --- Lane Schwartz <dowobeha@gmail.com> wrote:
> >
> > > I'm getting close to a working Tic Tac Toe
> > > implementation.
> > >
> > > One thing I can't figure out is how to signal
> that
> > > the game is over.
> > > Specifically, when a delegate figures out that
> an
> > > endgame condition has been
> > > met, it can set its own m_gameOver to true. But
> that
> > > doesn't seem to let the
> > > engine know that the game is over.
> > >
> > > Where and how is this marked?
> > >
> > > Thanks,
> > > Lane
> > > >
> >
>
-------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2
> > > express and take
> > > control of your XML. No limits. Just data. Click
> to
> > > get it now.
> > > http://sourceforge.net/powerbar/db2/>
> > _______________________________________________
> > > Triplea-developers mailing list
> > > Triplea-developers@lists.sourceforge.net
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/triplea-developers
> > >
> >
> >
> >
> >
>
____________________________________________________________________________________Shape
> > Yahoo! in your own image.  Join our Network
> Research Panel today!
> >
>
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> >
> >
> >
>
>
> --
> Meetup with other Myth users!
> http://mythtv.info/moin.cgi/MUG
>




____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/



--
Meetup with other Myth users!
http://mythtv.info/moin.cgi/MUG