Search in sources :

Example 1 with HIDDEN_DEBUG_FUNCTIONS

use of eidolons.test.debug.DebugMaster.HIDDEN_DEBUG_FUNCTIONS in project Eidolons by IDemiurge.

the class FunctionPanel method actionPerformed.

@Override
public void actionPerformed(final ActionEvent e) {
    // cache
    new Thread(new Runnable() {

        @Override
        public void run() {
            DEBUG_FUNCTIONS func = new EnumMaster<DEBUG_FUNCTIONS>().retrieveEnumConst(DEBUG_FUNCTIONS.class, e.getActionCommand());
            if (func == null) {
                HIDDEN_DEBUG_FUNCTIONS hfunc = new EnumMaster<HIDDEN_DEBUG_FUNCTIONS>().retrieveEnumConst(HIDDEN_DEBUG_FUNCTIONS.class, e.getActionCommand());
                master.executeHiddenDebugFunction(hfunc);
                return;
            }
            master.executeDebugFunction(func);
        }
    }, "function " + e.getActionCommand()).start();
// Game.game.getManager().reset();
}
Also used : HIDDEN_DEBUG_FUNCTIONS(eidolons.test.debug.DebugMaster.HIDDEN_DEBUG_FUNCTIONS) DEBUG_FUNCTIONS(eidolons.test.debug.DebugMaster.DEBUG_FUNCTIONS) HIDDEN_DEBUG_FUNCTIONS(eidolons.test.debug.DebugMaster.HIDDEN_DEBUG_FUNCTIONS)

Aggregations

DEBUG_FUNCTIONS (eidolons.test.debug.DebugMaster.DEBUG_FUNCTIONS)1 HIDDEN_DEBUG_FUNCTIONS (eidolons.test.debug.DebugMaster.HIDDEN_DEBUG_FUNCTIONS)1