# HG changeset patch # User Robert McIntyre # Date 1331107979 21600 # Node ID ee70875e0d3ebf829b674d742dc9afbc9c30a9ad # Parent abd94449d4bf92cbc5f400cf3d086ce3f0bc0088 working on the API diff -r abd94449d4bf -r ee70875e0d3e org/todo.org --- a/org/todo.org Wed Mar 07 01:55:55 2012 -0600 +++ b/org/todo.org Wed Mar 07 02:12:59 2012 -0600 @@ -12,6 +12,25 @@ - [ ] save / load state (use savestates) - [ ] write current frame - [ ] write sound + - [ ] send signals to th GB * high level - [ ] write vbm files + + + + + + +saveState() --- returns a SaveState object +loadState(SaveState) --- restores a state +writeState(SaveState) --- writes a SaveState to a file. + +getRAM() --- returns the ram of the GB in native buffer. +getRegisters() --- returns a map of register-keywords => values + +getFrame() --- returns a BufferedImage of data which represents the +current frame. + + +step(int buttons) --- steps the game while pressing the chosen button(s)