Original forum thread .

Latest version:

stateful.lua allows the addition of states to objects in Lua. An object can have different states, and behave differently depending on which state it is in.

Please refer to the forum post above or the latest version link for examples of use.

Other Languages