/// <summary> /// Constructs the class. /// </summary> public MapGrid(EndIsNighMemory memory) : base(memory) { visited = new bool[GridWidth, GridHeight]; cartridgeMap = new [] { new Point(9, 28), new Point(9, 29), new Point(9, 30), new Point(9, 33), new Point(9, 36), new Point(9, 31), new Point(9, 34), new Point(9, 32), new Point(9, 35), new Point(99, 40), new Point(0, 56), new Point(1, 54), new Point(1, 52), new Point(2, 49), new Point(6, 49), new Point(9, 43), new Point(9, 44), new Point(9, 45), new Point(9, 46), new Point(9, 47), new Point(9, 42), new Point(9, 37), }; futureMap = new [] { new Point(11, 28), new Point(11, 35), new Point(12, 30), new Point(11, 32), }; zoneMap = new [] { new Point(0, 17), new Point(20, 17), new Point(40, 17), new Point(61, 17), new Point(61, 16), new Point(69, 10), new Point(62, 17), new Point(77, 17), new Point(61, 18), new Point(71, 23), new Point(0, 26), new Point(20, 26), new Point(40, 26), new Point(60, 30), new Point(40, 31), }; }
/// <summary> /// Constructs the component. /// </summary> public EndIsNighComponent() { memory = new EndIsNighMemory(); dataClasses = new AutosplitDataClass[] { new MapGrid(memory), new TumorCollection(memory), new BodyPartCollection(memory), new CartridgeCollection(memory), new WorldEventCollection(memory), }; splitCollection = new SplitCollection(this, dataClasses); settingsControl = new EndIsNighControl(); settingsControl.CollectionControl.SplitCollection = splitCollection; settings = new EndIsNighSettings(splitCollection, settingsControl.CollectionControl, settingsControl.SettingsControl); textComponent = new InfoTextComponent("Death Count", "0") { LongestString = int.MaxValue.ToString() }; }
/// <summary> /// Constructs the class. /// </summary> public WorldEventCollection(EndIsNighMemory memory) : base(memory) { worldEvents = new bool[4]; }
/// <summary> /// Constructs the class. /// </summary> public CartridgeCollection(EndIsNighMemory memory) : base(memory) { }
/// <summary> /// Constructs the class. /// </summary> protected AutosplitDataClass(EndIsNighMemory memory) { Memory = memory; }
/// <summary> /// Constructs the class. /// </summary> public TumorCollection(EndIsNighMemory memory) : base(memory) { }
/// <summary> /// Constructs the class. /// </summary> public BodyPartCollection(EndIsNighMemory memory) : base(memory) { bodyParts = new bool[3]; }