+ def check(self):
+ action_radius = list(self.thing.game.map_geometry.
+ get_neighbors_yxyx(self.thing.position).values())
+ if len([t for t in self.thing.game.things if
+ t.type_ == 'Door' and t.position in action_radius]) == 0:
+ raise PlayError('not standing next to a door to open/close')
+