Actor WantsToGoLeft Property Delta Engine Documentation

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

public bool WantsToGoLeft { get; set; }

Property Value

Type: Boolean
Remarks

Tests: TinyPlatformer.Tests.ActorTests
Examples

3 unit tests call TinyPlatformer.Actor.WantsToGoLeft
[Test]
public void CheckInitialPlayerDesiredMovement()
{
    Assert.IsFalse(player.WantsToGoLeft);
    Assert.IsFalse(player.WantsToGoRight);
    Assert.IsFalse(player.WantsToJump);
}
[Test]
public void CheckInitialMonsterDesiredMovement()
{
    Assert.IsFalse(monster.WantsToGoLeft);
    Assert.IsTrue(monster.WantsToGoRight);
    Assert.IsFalse(monster.WantsToJump);
}
[Test]
public void CheckInitialTreasureDesiredMovement()
{
    Assert.IsFalse(treasure.WantsToGoLeft);
    Assert.IsFalse(treasure.WantsToGoRight);
    Assert.IsFalse(treasure.WantsToJump);
}
See Also