public void ShipHitByProjectileFFA()
{
// DO NOT MOVE THIS TEST AT ALL. MAKE TESTS BELOW THIS ONE OR ELSE FAILURE OCCURS. (Because of the global IDs.)
World tester = new World(750, new List <Star>()
{
new Star(new Vector2D(4, 6), 0.01, 25)
}, 4U, 300U, false);
tester.AddShip(new Vector2D(100, 100), new Vector2D(1, 0), "meme", tester.GetShotFireDelay(), 0.6, 4.0, 5, 25);
tester.AddShip(new Vector2D(130, 100), new Vector2D(1, 0), "meme", tester.GetShotFireDelay(), 0.6, 4.0, 5, 25);
for (int updateIdx = 0; updateIdx < 5; updateIdx++)
{
tester.Update();
}
tester.ProcessCommand(26, 'F');
for (int updateIdx = 0; updateIdx < 5; updateIdx++)
{
tester.Update();
tester.Cleanup();
}
Assert.IsTrue(tester.GetShips()[27].GetHP() == 4);
}