< Summary

Class:CarrierInterceptor
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Interceptors/CarrierInterceptor.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:18
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%2100%
LateUpdate()0%6200%

File(s)

/github/workspace/Assets/Scripts/Interceptors/CarrierInterceptor.cs

#LineLine coverage
 1// Carrier interceptor.
 2//
 3// The carrier interceptor is a missile that carries missile interceptors as submunitions.
 4public class CarrierInterceptor : CarrierBase {
 05  protected override void Awake() {
 06    base.Awake();
 7
 08    Movement = new MissileMovement(this);
 09    var assignment = new MaxSpeedAssignment(Assignment.Assignment_EvenAssignment_Assign);
 010    ReleaseStrategy = new ProximityReleaseStrategy(this, assignment);
 011  }
 12
 013  protected override void LateUpdate() {
 014    if (NumSubInterceptorsRemaining <= 0) {
 015      (Movement as MissileMovement).FlightPhase = Simulation.FlightPhase.Ballistic;
 016    }
 017  }
 18}

Methods/Properties

Awake()
LateUpdate()