Inheritance Hierarchy
Drench Board
Namespace: Drench
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Board type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Board(Board Data) | Initializes a new instance of the Board class | |
Board(Int32, Int32) | Initializes a new instance of the Board class |
Methods
Name | Description | |
---|---|---|
Clone | ||
GetColor(Vector2D) | ||
GetColor(Int32, Int32) | ||
GetConnectedColorsCount | ||
Randomize | ||
SetColor(Vector2D, Color) | ||
SetColor(Int32, Int32, Color) |
Properties
Name | Description | |
---|---|---|
Height | ||
Width |
Remarks
Examples
[Test] public void CreateBoard() { Assert.AreEqual(Width, board.Width); Assert.AreEqual(Height, board.Height); }
[Test] public void BoardTopLeftColor() { Assert.AreEqual(new Color(0.5f, 1.0f, 1.0f), board.GetColor(0, 0)); }
[Test] public void Randomize() { board.Randomize(); Assert.AreEqual(new Color(1.0f, 1.0f, 0.5f), board.GetColor(0, 0)); }
See Also