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.
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
--- Lane Schwartz <email@example.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?
> On 5/21/07, Sean Bridges <firstname.lastname@example.org>
> > Follow the same logic in TripleaFrame.leaveGame().
> > Sean
> > --- Lane Schwartz <email@example.com> wrote:
> > > I'm getting close to a working Tic Tac Toe
> > > implementation.
> > >
> > > One thing I can't figure out is how to signal
> > > the game is over.
> > > Specifically, when a delegate figures out that
> > > endgame condition has been
> > > met, it can set its own m_gameOver to true. But
> > > 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
> > > get it now.
> > > http://sourceforge.net/powerbar/db2/>
> > _______________________________________________
> > > Triplea-developers mailing list
> > > Tripleafirstname.lastname@example.org
> > >
> > >
> > Yahoo! in your own image. Join our Network
> Research Panel today!
> Meetup with other Myth users!
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.