Board ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  Drench Board

Namespace: Drench
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public class Board

The Board type exposes the following members.

Constructors

  NameDescription
Public methodBoard(Board Data)
Initializes a new instance of the Board class
Public methodBoard(Int32, Int32)
Initializes a new instance of the Board class
Top
Methods

  NameDescription
Public methodClone
Public methodGetColor(Vector2D)
Public methodGetColor(Int32, Int32)
Public methodGetConnectedColorsCount
Public methodRandomize
Public methodSetColor(Vector2D, Color)
Public methodSetColor(Int32, Int32, Color)
Top
Properties

  NameDescription
Public propertyHeight
Public propertyWidth
Top
Remarks

Tests: Drench.Tests.BoardTests
Examples

7 unit tests call Drench.Board
[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