Class
DataSource
Base abstract class from which inherit to implement any data providing strategy.
Info:
- edit Alexis BRENON brenon.alexis+arcades@gmail.com
See also:
Fields
keyboard_arrow_up-
{[string]=number,...}
state
Current state.
-
boolean
terminal
Terminal signal for current state.
Metamethods
keyboard_arrow_up-
__init ( args )
Abstract Methods
keyboard_arrow_up-
reset ()
Reset provider.
-
update ()
Move to the next state.
Public Methods
keyboard_arrow_up-
get_expected_action ()
Return expected action for the current state.
Todo:- Use DP for polymorph actions.
- table Expected action
-
get_state ()
Get the current state.
Returns:- {[string]=number,...} Current state
-
is_terminal ()
Get the terminal signal of the current state.
Returns: