StartTimer ClassDelta Engine Documentation
Inheritance Hierarchy

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

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

public class StartTimer : GameTrigger

The StartTimer type exposes the following members.

Constructors

  NameDescription
Public methodStartTimer
Initializes a new instance of the StartTimer 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 (Overrides GameTrigger UpdateAfterOneSecond .)
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 propertyNumberOfComponents (Inherited from Entity.)
Public propertyStartingTime
Public propertyUpdatePriority (Inherited from Entity.)
Public propertyWasInvokedThisTick (Inherited from Trigger.)
Top
Remarks

Tests: CreepyTowers.Tests.Triggers.StartTimerTests
Examples

1 unit tests call CreepyTowers.Triggers.StartTimer
[Test, CloseAfterFirstFrame]
public void TestStartTimer()
{
    var trigger = new StartTimer("90");
    Assert.AreEqual(90, trigger.StartingTime);
    var player = new Player();
    GameTrigger.OnGameStarting();
    Assert.AreEqual(trigger.StartingTime, player.Time);
    GameTrigger.OnUpdateEverySecond();
}
See Also