예제 #1
0
 def has_pipe_at(self, x, y):
     return Point(x, y) in self.get_pipe_positions()
예제 #2
0
 def has_shadow_at(self, x, y):
     return Point(x, y) in self.__get_shadows()
예제 #3
0
 def has_ladder_at(self, x, y):
     return Point(x, y) in self.get_ladder_positions()
예제 #4
0
 def has_gold_at(self, x, y):
     return Point(x, y) in self.get_gold_positions()
예제 #5
0
 def has_wall_at(self, x, y):
     return Point(x, y) in self.get_wall_positions()
예제 #6
0
 def has_other_hero_at(self, x, y):
     return Point(x, y) in self.get_other_hero_positions()
예제 #7
0
 def has_enemy_at(self, x, y):
     return Point(x, y) in self.get_enemy_positions()
예제 #8
0
 def _strpos2pt(self, strpos):
     return Point(*self._strpos2xy(strpos))
예제 #9
0
 def is_barrier_at(self, x, y):
     """ Return true if barrier is at x,y."""
     return Point(x, y) in self.get_barriers()