< Summary

Class:LauncherBase
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Interceptors/LauncherBase.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:25
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

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
 12  // Launchers cannot be reassigned to other targets and rely on threat reassignment only.
 013  public override bool IsReassignable => false;
 14
 015  protected override void Awake() {
 016    base.Awake();
 17
 18    // TODO(titan): The predictor, launch angle planner, and launch planner should be defined in the
 19    // simulation configuration.
 020    var launchAnglePlanner = new LaunchAngleCsvInterpolator(this);
 021    var predictor = new LinearExtrapolator(hierarchical: null);
 022    var planner = new IterativeLaunchPlanner(launchAnglePlanner, predictor);
 023    ReleaseStrategy = new PlannerReleaseStrategy(this, planner);
 024  }
 25}

Methods/Properties

IsPursuer()
IsReassignable()
Awake()