Package fr.neatmonster.nocheatplus.utilities

Examples of fr.neatmonster.nocheatplus.utilities.PassableRayTracing.cleanup()


            TestRayTracing.doFail("Expect not to collide when moving through a block.", coords);
        }
        if (rt.getStepsDone() > 4) {
            TestRayTracing.doFail("Expect less than 4 steps for moving straight through a block of air.", coords);
        }
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testThroughOneBlock() {
View Full Code Here


            {1.2, 0.5, 0.5, 0.5, 0.5, 1.2},
           
            // TODO: More of each and other... + generic set-ups?
        };
        TestRayTracing.runCoordinates(rt, setups, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    /**
     * Moving diagonally through an "empty corner", seen from above:<br>
View Full Code Here

            // Going exactly through the middle (11, y, 11)
            {11.4, 70.0, 10.6, 10.6, 70.0, 11.4},
            {11.5, 70.0, 10.5, 10.5, 70.0, 11.5},
        };
        TestRayTracing.runCoordinates(rt, setups, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testGround() {
View Full Code Here

            {1.3, 66.0, 2.43, 1.3, 65.9, 2.43},
            {1.3, 66.0, 2.43, 5.25, 65.9, 7.12},
            {1.3, 65.4, 2.43, 1.3, 65.4, 2.43}, // No distance.
        };
        TestRayTracing.runCoordinates(rt, shouldCollide, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testGroundSteps() {
View Full Code Here

            {1.3, 65.5, 2.43, 1.3, 65.4, 2.43},
            {1.3, 65.5, 2.43, 5.25, 65.4, 7.12},
            {1.3, 65.4, 2.43, 1.3, 65.4, 2.43}, // No distance.
        };
        TestRayTracing.runCoordinates(rt, shouldCollide, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.