public Cell(int height, CellColor color, bool hasStar) { this.height = height; Color = color; HasStar = hasStar; X = 0; Y = height; }
public GameRules() { StarPropbability = 33; Colors = new CellColor[3]; Colors[0] = new CellColor(new SolidColorBrush(Color.FromArgb(128, 128, 0, 0)), new SolidColorBrush(Color.FromArgb(128, 196, 0, 0)), new SolidColorBrush(Color.FromArgb(128, 255, 0, 0))); Colors[1] = new CellColor(new SolidColorBrush(Color.FromArgb(128, 0, 128, 0)), new SolidColorBrush(Color.FromArgb(128, 0, 196, 0)), new SolidColorBrush(Color.FromArgb(128, 0, 255, 0))); Colors[2] = new CellColor(new SolidColorBrush(Color.FromArgb(128, 0, 0, 128)), new SolidColorBrush(Color.FromArgb(128, 0, 0, 196)), new SolidColorBrush(Color.FromArgb(128, 0, 0, 255))); }