Interaction Apply Method Delta Engine Documentation

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

public void Apply()
Remarks

Tests: CreepyTowers.Tests.Stats.InteractionTests
Examples

2 unit tests call CreepyTowers.Stats.Interaction.Apply
[Test]
public void PerformAdjustment()
{
    var interaction = new Interaction(tower, creep, adjustment);
    interaction.Apply();
    Assert.AreEqual(0.0f, creep.GetStatValue("Hp"));
}
[Test]
public void PerformBuff()
{
    var effect = new BuffEffect("TestHpBuff");
    var interaction = new Interaction(tower, creep, adjustment, effect);
    interaction.Apply();
    Assert.AreEqual(204.0f, creep.GetStatValue("Hp"));
}
See Also