< Summary

Class:LauncherBase
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Interceptors/LauncherBase.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:22
Line coverage:87.5% (7 of 8)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:2
Method coverage:50% (1 of 2)

Metrics

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

File(s)

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

#LineLine coverage
 1using UnityEngine;
 2
 3// Base implementation of a launcher.
 4//
 5// A launcher is the source of interceptors and cannot be released by other interceptors.
 6// Interceptors can be launched from naval vessels, shore batteries, or mobile platforms, for
 7// example.
 8public abstract class LauncherBase : CarrierBase {
 9  // Launchers cannot pursue threats.
 010  public override bool IsPursuer => false;
 11
 1412  protected override void Awake() {
 1413    base.Awake();
 14
 15    // TODO(titan): The predictor, launch angle planner, and launch planner should be defined in the
 16    // simulation configuration.
 1417    var launchAnglePlanner = new LaunchAngleCsvInterpolator(this);
 1418    var predictor = new LinearExtrapolator(hierarchical: null);
 1419    var planner = new IterativeLaunchPlanner(launchAnglePlanner, predictor);
 1420    ReleaseStrategy = new PlannerReleaseStrategy(this, planner);
 1421  }
 22}

Methods/Properties

IsPursuer()
Awake()