Plane IsActive Property Delta Engine Documentation

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

public override bool IsActive { get; set; }

Property Value

Type: Boolean

Implements

HierarchyObject2D IsActive
Remarks

Tests: SideScroller.Tests.EnemyPlaneTests
Examples

1 unit tests call SideScroller.Plane.IsActive
[Test]
public void EnemyDespawnsOutsideScreenArea()
{
    enemy = new EnemyPlane(new Vector2D(ScreenSpace.Current.Left - enemy.DrawArea.Width, 0.5f));
    AdvanceTimeAndUpdateEntities();
    Assert.IsFalse(enemy.IsActive);
}
See Also