Ejemplo n.º 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))
Ejemplo n.º 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])
Ejemplo n.º 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))
Ejemplo n.º 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])