From: Erik O. <er...@ma...> - 2000-06-27 17:43:55
|
On Tue, 27 Jun 2000, Benoit ROUSSEAU wrote: > > How is the appropriate function to do to quit? Is it to add a QuitEvent to > > the_eventhandler? We have to cleanly join all threads and that sort of > > thing before it is allowed to quit. > Yes, that was the idea, but it is maybe better to make quit() function in the EventHandler, which could be called directly. > > For the moment, it seems to be use to quit a game and not the program, > but we don't have made any specification about that... No, the QuitEvent was intended to shut the program down, but a lot more work remains on that. I leave it to Ragnar to handle the thread-joining and all that. > I think that 'quit the program event' shouldn't be a Game Time Event, but > a Real Time event, and should work like the 'shutdown' command... Or maybe not an event at all, since to should occur immediately, not at a specific (later) time. /Erik |