示例#1
0
 public Cell(int height, CellColor color, bool hasStar)
 {
     this.height = height;
     Color = color;
     HasStar = hasStar;
     X = 0;
     Y = height;
 }
示例#2
0
        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)));
        }