PlayerShip IsFiring Property Delta Engine Documentation

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

public bool IsFiring { get; set; }

Property Value

Type: Boolean
Remarks

Tests: Asteroids.Tests.PlayerShipTests
Examples

1 unit tests call Asteroids.PlayerShip.IsFiring
[Test, CloseAfterFirstFrame]
public void FireRocket()
{
    if(IsMockResolver)
        return; //ncrunch: no coverage start 
    bool firedRocket = false;
    playerShip.ProjectileFired += () => { firedRocket = true; };
    playerShip.IsFiring = true;
    AdvanceTimeAndUpdateEntities(1f);
    Assert.IsTrue(firedRocket);
} //ncrunch: no coverage end
See Also