Grid IsABrickOnFirstRow Method Delta Engine Documentation

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

public bool IsABrickOnFirstRow()

Return Value

Type: Boolean
Remarks

Tests: Blocks.Tests.GridTests
Examples

1 unit tests call Blocks.Grid.IsABrickOnFirstRow
[Test]
public void IsABrickOnFirstRow()
{
    var lost = false;
    controller.Lose += () => { lost = true; };
    Assert.IsFalse(grid.IsABrickOnFirstRow());
    grid.AffixBlock(new Block(displayMode, content, new Vector2D(1, 1)));
    Assert.IsFalse(grid.IsABrickOnFirstRow());
    grid.AffixBlock(new Block(displayMode, content, new Vector2D(2, 0)));
    Assert.IsTrue(grid.IsABrickOnFirstRow());
    AdvanceTimeAndUpdateEntities();
    Assert.IsTrue(lost);
}
See Also