kikito/stateful.lua — pull request #1 by TannerRogalsky (2013-01-10 01:26:49+00:00)
Title: Allow gotoState to pass arguments to the new state.

If you want an object to change state with particular behaviour within that state, this is useful.

```lua
person:gotoState("Speaking", "Hello, how are you.")
```

This means you don't need to pollute the non-speaking state with speaking-only attributes before changing state.