public ButtonTile(TrapTile trapTile) { this.Representation = 'B'; this.IsAccessible = true; this.TrapTile = trapTile; this.color = ConsoleColor.Cyan; this.TrapTile.color = this.color; }
private void PlaceButtonTrapPairs(int pairs) { for (int i = 0; i < pairs; i++) { TrapTile trap = new TrapTile(); PlaceTile(new ButtonTile(trap), typeof(RoomTile)); PlaceTile(trap, typeof(RoomTile)); } }