Ejemplo n.º 1
0
 def has_pipe_at(self, x, y):
     return Point(x, y) in self.get_pipe_positions()
Ejemplo n.º 2
0
 def has_shadow_at(self, x, y):
     return Point(x, y) in self.__get_shadows()
Ejemplo n.º 3
0
 def has_ladder_at(self, x, y):
     return Point(x, y) in self.get_ladder_positions()
Ejemplo n.º 4
0
 def has_gold_at(self, x, y):
     return Point(x, y) in self.get_gold_positions()
Ejemplo n.º 5
0
 def has_wall_at(self, x, y):
     return Point(x, y) in self.get_wall_positions()
Ejemplo n.º 6
0
 def has_other_hero_at(self, x, y):
     return Point(x, y) in self.get_other_hero_positions()
Ejemplo n.º 7
0
 def has_enemy_at(self, x, y):
     return Point(x, y) in self.get_enemy_positions()
Ejemplo n.º 8
0
 def _strpos2pt(self, strpos):
     return Point(*self._strpos2xy(strpos))
Ejemplo n.º 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()