예제 #1
0
파일: testproject.py 프로젝트: agrue/rlfl
 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))
예제 #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])
예제 #3
0
파일: testproject.py 프로젝트: agrue/rlfl
 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))
예제 #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])