public void addState ( GameState state ) { states . put ( new Integer ( state . getID ( ) ) , state ) ; if ( currentState . getID ( ) == - 1 ) { currentState = state ; } }
Add a state to the game . The state will be updated and maintained by the game