Gankro/Jterniabound — pull request #43 by illuminatedwax (2012-09-04 07:37:45+00:00)
Title: Refactored triggers, added gameState

Tested triggers all the way through the meenah grind. This pull request can be tested at http://irc2.mindfang.org/Jterniaboundtest/

Triggers now go to events.js to give themselves an event object, which it will call reset() and checkCompletion() on. It will call this via
this.event = new Sburb.events[type](info)
and the corresponding function will define reset() and checkCompletion() methods.

Let me know if this is still unruly to handle.

Also I added gameState functionality; this is all currently untested, but it should be able to do commands, triggers, serialization, and reading gameState from XML. At the very least it's a decent start. I'll probably do testing on this tomorrow.

Game state and triggers should be in separate commits.