StartingLives ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Entities Entity
    DeltaEngine.Commands Trigger
      DeltaEngine.GameLogic GameTrigger
        CreepyTowers.Triggers StartingLives

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

public class StartingLives : GameTrigger

The StartingLives type exposes the following members.

Constructors

  NameDescription
Public methodStartingLives
Initializes a new instance of the StartingLives class
Top
Methods

  NameDescription
Public methodAdd T  (Inherited from Entity.)
Public methodAddTag (Inherited from Entity.)
Public methodClearTags (Inherited from Entity.)
Public methodContains T  (Inherited from Entity.)
Public methodContainsBehavior T  (Inherited from Entity.)
Public methodContainsTag (Inherited from Entity.)
Protected methodDeactivate (Inherited from Entity.)
Public methodDispose (Inherited from Entity.)
Protected methodEnemyReachGoalPoint (Inherited from GameTrigger.)
Protected methodGameOver (Inherited from GameTrigger.)
Public methodGet T 
Gets a specific component, derived classes can return faster cached values (e.g. Entity2D) View code on GitHub
(Inherited from Entity.)
Protected methodGetActiveBehaviors (Inherited from Entity.)
Protected methodGetComponentsForSaving (Inherited from Entity.)
Public methodGetOrDefault T  (Inherited from Entity.)
Public methodGetTags (Inherited from Entity.)
Public methodInvoke (Inherited from Trigger.)
Public methodRemove T  (Inherited from Entity.)
Public methodRemoveTag (Inherited from Entity.)
Public methodSet (Inherited from Entity.)
Public methodSetComponents (Inherited from Entity.)
Public methodStart T  (Inherited from Entity.)
Protected methodStartingLevel (Overrides GameTrigger StartingLevel .)
Public methodStop T  (Inherited from Entity.)
Public methodToString (Inherited from Entity.)
Public methodUpdate (Inherited from Trigger.)
Protected methodUpdateAfterOneSecond (Inherited from GameTrigger.)
Top
Fields

  NameDescription
Protected fieldcomponents (Inherited from Entity.)
Public fieldInvoked (Inherited from Trigger.)
Top
Properties

  NameDescription
Public propertyIsActive (Inherited from Entity.)
Public propertyIsPauseable (Inherited from Trigger.)
Public propertyLives
Public propertyNumberOfComponents (Inherited from Entity.)
Public propertyUpdatePriority (Inherited from Entity.)
Public propertyWasInvokedThisTick (Inherited from Trigger.)
Top
Remarks

Tests: CreepyTowers.Tests.Triggers.StartingLivesTests
Examples

1 unit tests call CreepyTowers.Triggers.StartingLives
[Test, CloseAfterFirstFrame]
public void TestStartingLives()
{
    var trigger = new StartingLives("5");
    Assert.AreEqual(5, trigger.Lives);
    var player = new Player();
    GameTrigger.OnGameStarting();
    Assert.AreEqual(trigger.Lives, player.LivesLeft);
}
See Also