Tree IsActive Property Delta Engine Documentation

Namespace: GhostWars
Assembly: GhostWars (in GhostWars.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: GhostWars.Tests.TreeTests
Examples

2 unit tests call GhostWars.Tree.IsActive
[Test]
public void TreeStartsOffBeingActive()
{
    var humanTree = GiveTreeOfTeam();
    Assert.IsTrue(humanTree.IsActive);
}
[Test]
public void SettingInactiveDeactivatesCounterText()
{
    var tree = GiveTreeOfTeam();
    tree.IsActive = false;
    Assert.IsFalse(tree.NumberText.IsActive);
}
See Also