public ColorPistonGene(ZeldaConfiguration configuration) : base(configuration) { this.switchType = configuration.RandomSwitchType(); this.switchColor = configuration.RandomSwitchColor(); int a = RandomLocation(); int b = RandomLocation(a); this.pistonStart = Math.Min(a, b); this.pistonEnd = Math.Max(a, b); }
public ColorSwitchGene(ZeldaConfiguration configuration) : base(configuration) { this.switchType = configuration.RandomSwitchType(); this.switchLocation = RandomLocation(); }