コード例 #1
0
 public void WaterSpecial()
 {
     CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0));
     SingleObject(courseobj, "water_special");
 }
コード例 #2
0
 public void WaterOffset()
 {
     CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F));
     SingleObjectOffset(courseobj, "water_offset");
 }
コード例 #3
0
 public void WaterHighlightSpecial()
 {
     CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0.1F, 0.4F));
     SingleObjectHighlight(courseobj, "water_highlight_special");
 }
コード例 #4
0
 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)");
 }
コード例 #5
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)));
 }
コード例 #6
0
 public void Water()
 {
     CourseObj courseobj = new WaterCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0));
     SingleObject(courseobj, "water");
 }