Stat MaxValue Property Delta Engine Documentation

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

public float MaxValue { get; }

Property Value

Type: Single
Remarks

Tests: CreepyTowers.Tests.Stats.StatTests
Examples

4 unit tests call CreepyTowers.Stats.Stat.MaxValue
[Test]
public void Adjust()
{
    stat.Adjust(-5.0f);
    Assert.AreEqual(95.0f, stat.Value);
    Assert.AreEqual(100.0f, stat.MaxValue);
}
[Test]
public void CantAdjustToAboveMaxValue()
{
    stat.Adjust(-20.0f);
    stat.Adjust(50.0f);
    Assert.AreEqual(100.0f, stat.Value);
}
[Test]
public void AddBuff()
{
  stat.ApplyBuff(new BuffEffect("TestHpBuff"));
    Assert.AreEqual(304.0f, stat.Value);
    Assert.AreEqual(304.0f, stat.MaxValue);
}
See Also