MinieExamples/src/main/java/jme3utilities/minie/test/TargetDemo.java
/**
     * Process an action that wasn't handled by the active input mode.
     *
     * @param actionString textual description of the action (not null)
     * @param ongoing true if the action is ongoing, otherwise false
     * @param tpf time interval between frames (in seconds, &ge;0)
     */
Process an action that wasn't handled by the active input mode.

@param actionString textual description of the action (not null)
@param ongoing true if the action is ongoing, otherwise false
@param tpf time interval between frames (in seconds, ≥0)
Process an action that wasn ' t handled by the active input mode . @param actionString textual description of the action ( not null ) @param ongoing true if the action is ongoing otherwise false @param tpf time interval between frames ( in seconds ≥0 )
@Override
    public void onAction(String actionString, boolean ongoing, float tpf) {
        if (ongoing) {
            switch (actionString) {
                case "delete selected":
                    deleteSelected();
                    return;
                case "dump selected":
                    dumpSelected();
                    return;
                case "launch":
                    launchMissile();
                    return;
                case "next field":
                    status.advanceSelectedField(+1);
                    return;
                case "next value":
                    status.advanceValue(+1);
                    return;
                case "pick":
                    pick();
                    return;
                case "pop selected":
                    popSelected();
                    return;
                case "previous field":
                    status.advanceSelectedField(-1);
                    return;
                case "previous value":
                    status.advanceValue(-1);
                    return;
                case "restart":
                    restartScenario();
                    return;
                case "toggle childColor":
                    status.toggleChildColor();
                    return;
                case "toggle wireframe":
                    status.toggleWireframe();
                    return;
            }
        }
        super.onAction(actionString, ongoing, tpf);
    }
@ Override public void onAction ( String actionString , boolean ongoing , float tpf ) { if ( ongoing ) { switch ( actionString ) { case "delete selected" : deleteSelected ( ) ; return ; case "dump selected" : dumpSelected ( ) ; return ; case "launch" : launchMissile ( ) ; return ; case "next field" : status . advanceSelectedField ( + 1 ) ; return ; case "next value" : status . advanceValue ( + 1 ) ; return ; case "pick" : pick ( ) ; return ; case "pop selected" : popSelected ( ) ; return ; case "previous field" : status . advanceSelectedField ( - 1 ) ; return ; case "previous value" : status . advanceValue ( - 1 ) ; return ; case "restart" : restartScenario ( ) ; return ; case "toggle childColor" : status . toggleChildColor ( ) ; return ; case "toggle wireframe" : status . toggleWireframe ( ) ; return ; } } super . onAction ( actionString , ongoing , tpf ) ; }
Process an action that wasn't handled by the active input mode.
Process an action that wasn ' t handled by the active input mode .