/** * Calls update for attached states, do not call directly. * @param tpf Time per frame. */ public void update(float tpf){ // Cleanup any states pending terminatePending(); // Initialize any states pending initializePending(); // Update enabled states AppState[] array = getStates(); for (AppState state : array){ if (state.isEnabled()) { state.update(tpf); } } }
/** * Calls update for attached states, do not call directly. * @param tpf Time per frame. */ public void update(float tpf){ // Cleanup any states pending terminatePending(); // Initialize any states pending initializePending(); // Update enabled states AppState[] array = getStates(); for (AppState state : array){ if (state.isEnabled()) { state.update(tpf); } } }
/** * Calls update for attached states, do not call directly. * @param tpf Time per frame. */ public void update(float tpf){ // Cleanup any states pending terminatePending(); // Initialize any states pending initializePending(); // Update enabled states AppState[] array = getStates(); for (AppState state : array){ if (state.isEnabled()) { state.update(tpf); } } }