protected AeroGroundPathFinder(IGame game) { this.game = game; getLogger().setLogLevel(LOGGER_CATEGORY, LogLevel.DEBUG); }
public void enableSimplifiedLogging() { if (simpleLoggingConfigured.get()) { return; } simpleLoggingConfigured.set(true); DefaultMmLogger.getInstance().setLogLevel(CAT_MEGAMEK, LogLevel.INFO); // Check for updated logging properties every 30 seconds. DOMConfigurator.configureAndWatch(LOG_CONFIG_FILE_PATH, 30000); } }
private InfantryPathFinder(IGame game) { this.game = game; getLogger().setLogLevel(LOGGER_CATEGORY, LogLevel.DEBUG); // put together a pre-defined array of turns. Indexes correspond to the directional values found in Coords.java turns = new ArrayList<>(); turns.add(new ArrayList<MoveStepType>()); // "no turns" turns.add(new ArrayList<MoveStepType>()); turns.get(1).add(MoveStepType.TURN_RIGHT); turns.add(new ArrayList<MoveStepType>()); turns.get(2).add(MoveStepType.TURN_RIGHT); turns.get(2).add(MoveStepType.TURN_RIGHT); turns.add(new ArrayList<MoveStepType>()); turns.get(3).add(MoveStepType.TURN_RIGHT); turns.get(3).add(MoveStepType.TURN_RIGHT); turns.get(3).add(MoveStepType.TURN_RIGHT); turns.add(new ArrayList<MoveStepType>()); turns.get(4).add(MoveStepType.TURN_LEFT); turns.get(4).add(MoveStepType.TURN_LEFT); turns.add(new ArrayList<MoveStepType>()); turns.get(5).add(MoveStepType.TURN_LEFT); }
protected NewtonianAerospacePathFinder(IGame game) { this.game = game; getLogger().setLogLevel(LOGGER_CATEGORY, LogLevel.DEBUG); initializeMoveList(); }
/** * Constructor - initializes a new instance of the Princess bot. * @param name The display name. * @param host The host address to which to connect. * @param port The port on the host where to connect. * @param verbosity The verbosity of the bot's reporting and logging. */ public Princess(final String name, final String host, final int port, final LogLevel verbosity) { super(name, host, port); getLogger().setLogLevel(LOGGING_CATEGORY, verbosity); setBehaviorSettings(BehaviorSettingsFactory.getInstance(getLogger()) .DEFAULT_BEHAVIOR); fireControlState = new FireControlState(); pathRankerState = new PathRankerState(); // Start-up precog now, so that it can instantiate its game instance, // and it will stay up-to date. precognition = new Precognition(this); precogThread = new Thread(precognition, "Princess-precognition (" + getName() + ")"); precogThread.start(); }