/// <summary> /// Creates new UniverseView for specified GameUniverse /// </summary> /// <param name="gameUniverse">GameUniverse to visualize</param> public UniverseView(GameUniverse gameUniverse) { this.gameUniverse = gameUniverse; blockPen = new Pen(Color.Black); gridPen = new Pen(ColorUtility.ColorFromRGB(25, 25, 25)); }
/// <summary> /// Creates new NextBlockView element for given GameUniverse /// </summary> /// <param name="gameUniverse">GameUniverse to visualize</param> public NextBlockView(GameUniverse gameUniverse) { this._universe = gameUniverse; _blockPen = new Pen(Color.Black); _linePen = new Pen(Colors.White, 4); _fillBrush = new SolidColorBrush(ColorUtility.ColorFromRGB(164, 164, 164)); }