Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering2D Entity2D
DeltaEngine.Rendering2D HierarchyEntity2D
DeltaEngine.Rendering2D Sprite
GhostWars Tree
Namespace: GhostWars
Assembly: GhostWars (in GhostWars.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Tree type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Tree | Initializes a new instance of the Tree class |
Methods
Extension Methods
Name | Description | |
---|---|---|
AffixToPhysics | (Defined by Entity2DPhysicsExtensions.) | |
StartBouncingOffScreenEdges | (Defined by Entity2DExtensions.) | |
StartFalling | (Defined by Entity2DExtensions.) | |
StartMoving | (Defined by Entity2DExtensions.) | |
StartMovingUV | (Defined by Entity2DExtensions.) | |
StartRotating | (Defined by Entity2DExtensions.) |
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) | |
NumberText |
Properties
Events
Name | Description | |
---|---|---|
AnimationEnded | (Inherited from Sprite.) |
Remarks
Examples
[Test] public void TreeStartsOffBeingActive() { var humanTree = GiveTreeOfTeam(); Assert.IsTrue(humanTree.IsActive); }
[Test] public void HumanYellowTreeIsNotAiOthersAre() { var humanTree = GiveTreeOfTeam(Team.HumanYellow); Assert.IsFalse(humanTree.IsAi); var tealAiTree = GiveTreeOfTeam(Team.ComputerTeal); Assert.IsTrue(tealAiTree.IsAi); var purpleAiTree = GiveTreeOfTeam(Team.ComputerPurple); Assert.IsTrue(purpleAiTree.IsAi); }
[Test] public void AdvancingByGrowthIntervalIncreasesGhosts() { var tree = GiveTreeOfTeam(Team.ComputerTeal); var originalGhostCount = tree.NumberOfGhosts; MainMenu.State = GameState.Game; AdvanceTimeAndUpdateEntities(2); Assert.AreEqual(originalGhostCount + 1, tree.NumberOfGhosts); }
See Also