public void WaterSpecial() { CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0)); SingleObject(courseobj, "water_special"); }
public void WaterOffset() { CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F)); SingleObjectOffset(courseobj, "water_offset"); }
public void WaterHighlightSpecial() { CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0.1F, 0.4F)); SingleObjectHighlight(courseobj, "water_highlight_special"); }
public void WaterDump() { CourseObj courseobj = new WaterCourseObj(SpecialId(16), 1.0F, defaultCourseAppearance, new PointF(0, 0)); AssertDump(courseobj, @"Water: special:16 scale:1 location:(0,0)"); }
public void WaterDistance() { CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1)); Assert.AreEqual(5.0 - 2.0, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 3)); Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.5F, 0.5F))); courseobj = new WaterCourseObj(SpecialId(0), 0.5F, defaultCourseAppearance, new PointF(1, 1)); Assert.AreEqual(5.0 - 2.0 / 2.0, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 4)); Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.2F, 0.3F))); }
public void Water() { CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0)); SingleObject(courseobj, "water"); }