< Summary

Class:LauncherBase
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Interceptors/LauncherBase.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:22
Line coverage:0% (0 of 8)
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%

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
 012  protected override void Awake() {
 013    base.Awake();
 14
 15    // TODO(titan): The predictor, launch angle planner, and launch planner should be defined in the
 16    // simulation configuration.
 017    var launchAnglePlanner = new LaunchAngleCsvInterpolator(this);
 018    var predictor = new LinearExtrapolator(hierarchical: null);
 019    var planner = new IterativeLaunchPlanner(launchAnglePlanner, predictor);
 020    ReleaseStrategy = new PlannerReleaseStrategy(this, planner);
 021  }
 22}

Methods/Properties

IsPursuer()
Awake()