< Summary

Class:FixedWingThreat
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Threats/FixedWingThreat.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:14
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%110100%

File(s)

/github/workspace/Assets/Scripts/Threats/FixedWingThreat.cs

#LineLine coverage
 1// Fixed wing threat.
 2//
 3// The fixed wing threat uses proportional navigation to follow its attack behavior.
 4public class FixedWingThreat : ThreatBase {
 5  // Default proportional navigation controller gain.
 6  private const float _proportionalNavigationGain = 50f;
 7
 8998  protected override void Awake() {
 8999    base.Awake();
 10
 89911    Movement = new IdealMovement(this);
 89912    Controller = new PnController(this, _proportionalNavigationGain);
 89913  }
 14}

Methods/Properties

Awake()