RabbitGrid Rabbits Property Delta Engine Documentation

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

public Rabbit[,] Rabbits { get; }

Property Value

Type:  Rabbit 
Remarks

Tests: GameOfDeath.Tests.RabbitGridTests
Examples

1 unit tests call GameOfDeath.RabbitGrid.Rabbits
[Test]
public void DamagingRabbitsTillDeathMakesThemInvisibleAgain()
{
    var rabbitGrid = CreateRabbitGrid();
    AdvanceTimeAndUpdateEntities();
    rabbitGrid.DoDamage(rabbitGrid.CalculatePositionOfMatrixRabbit(1, 1), 0.1f, 10.0f);
    Assert.IsFalse(rabbitGrid.Rabbits[1,1].IsVisible);
    Assert.IsFalse(rabbitGrid.Rabbits[1,1].RabbitHealthBar.IsVisible);
}
See Also