Example #1
0
 def test_ball(self): 
     ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], 2)
     self.assertEqual(32, len(ball))
     ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], -2)
     self.assertEqual(17, len(ball))
Example #2
0
 def show_ball(self, source, target, rad=2, rng=-1, flags=0):
     ball = rlfl.project_ball(self.mapnum, self.origos[source], self.origos[target], rad, rng, flags)
     self.print_map(ball, self.origos[source], self.origos[target])
Example #3
0
 def test_ball(self):
     ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], 2)
     self.assertEqual(32, len(ball))
     ball = rlfl.project_ball(self.map, ORIGOS[1], ORIGOS[4], -2)
     self.assertEqual(17, len(ball))
Example #4
0
 def show_ball(self, source, target, rad=2, rng=-1, flags=0):
     ball = rlfl.project_ball(self.mapnum, self.origos[source],
                              self.origos[target], rad, rng, flags)
     self.print_map(ball, self.origos[source], self.origos[target])