/// <summary> /// Rotates a ship anti-clockwise to the specified angle /// </summary> /// <param name="angle"> The angle to rotate to.</param> public void RotateLeft(double angle) { if (Ship != null) { RotateAction ra = new RotateAction(Ship.GetAngle(), angle, false); if (IsEvent) { AddEvent(ra); } else { AddAction(ra); } } }
/// <summary> /// Rotates a ship clockwise to the specified angle /// </summary> /// <param name="angle"> The angle to rotate to.</param> public void RotateRight(double angle) { if (Ship != null) { RotateAction ra = new RotateAction(Ship.GetAngle(), angle, true); if (IsEvent) AddEvent(ra); else AddAction(ra); } }