public NK(Environment z, int x, int y) { super( z, x, y, new Pattern(Global.getInstance().getStringParameter(EnvParameters.NK_SELF_PATTERN))); state = NKStates.RANDOMWALK; initiateParameters(); }
private void initiateParameters() { this.killLimit = Global.getInstance().getIntegerParameter(EnvParameters.NK_KILL_LIMIT); this.lifetime = Global.getInstance().getIntegerParameter(EnvParameters.NK_LIFETIME); this.durationCK1 = Global.getInstance().getIntegerParameter(EnvParameters.NK_CK1_DURATION); this.noKillTimeout = Global.getInstance().getIntegerParameter(EnvParameters.NK_NOKILL_TIMEOUT); }