Make 'quit' an ordinary command.
authorNeil Moore <neil@s-z.org>
Sat, 31 May 2008 21:49:21 +0000 (17:49 -0400)
committerNeil Moore <neil@s-z.org>
Sat, 31 May 2008 21:49:21 +0000 (17:49 -0400)
commite5e9233cca54329fdcf5e6f50181a34ef238609c
tree70effbba99f663fb5e9df2ef0746f4f5e243ac93
parentaa276498ff2c5079d29b64eb9b307355e65fc577
Make 'quit' an ordinary command.

New exception class PlayerQuit, thrown when the player quits the game.

Catch PlayerQuit and return in the event loop.
roguelike.py