flatworld.mapStates Class
Finite state machine for the map. Uses this library and pretty much it's API https://github.com/jakesgordon/javascript-state-machine.
Item Index
Methods
normalize
()
When situation is normal, nothing selected.
objectOrder
()
When object is issued a move order
objectOrderEnd
()
When object ends it's movement animation
objectSelect
()
When the object is selected
objectSelectDialog
()
When multiple objects are represented as an option
UIClose
()
Games main UI is closed and map is activated again
UIOpen
()
The games main UI is opened and the map stays at the background, normally non-responsive