DrawableEntity IsActive Property Delta Engine Documentation

Namespace: DeltaEngine.Entities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public override bool IsActive { get; set; }

Property Value

Type: Boolean
Remarks

Tests: Snake.Tests.ChunkTests
Examples

1 unit tests call DeltaEngine.Entities.DrawableEntity.IsActive
[Test]
public void CreateFirstChunk()
{
    var chunk = new Chunk(gridSize, blockSize, Color.Purple);
    Assert.IsTrue(chunk.IsActive);
    Assert.AreEqual(blockSize, chunk.Size.Width);
    Assert.AreEqual(blockSize, chunk.Size.Height);
    Assert.AreEqual(Color.Purple, chunk.Color);
    Assert.LessOrEqual(0.0f, chunk.DrawArea.Left);
    Assert.LessOrEqual(0.0f, chunk.DrawArea.Top);
    Assert.GreaterOrEqual(1.0f, chunk.DrawArea.Left);
    Assert.GreaterOrEqual(1.0f, chunk.DrawArea.Top);
}
See Also