< Summary

Class:IdealMovement
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Movements/IdealMovement.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:15
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
IdealMovement(...)0%110100%
Act(...)0%110100%

File(s)

/github/workspace/Assets/Scripts/Movements/IdealMovement.cs

#LineLine coverage
 1using UnityEngine;
 2
 3// Ideal movement.
 4//
 5// Threats can be modeled as moving ideally, i.e., without the influence of drag or gravity.
 6public class IdealMovement : AerialMovement {
 97  public IdealMovement(IAgent agent) : base(agent) {}
 8
 9  // Determine the agent's actual acceleration input given its intended acceleration input by
 10  // applying physics and other constraints. Ideal movement implies no drag or gravity, but the
 11  // agent may be limited by its own maximum forward and normal accelerations.
 312  public override Vector3 Act(in Vector3 accelerationInput) {
 313    return LimitAccelerationInput(accelerationInput);
 314  }
 15}