- def is_on_friend(self, x, y):
- return (x, y) in [x.game_pos for x in self.friends]
+ def friend_at(self, x, y):
+ for f in self.friends:
+ if f.game_pos == (x, y):
+ return f
+
+ def remove_friend(self, friend):
+ self.friends.remove(friend)
+
+ def item_at(self, x, y):
+ for i in self.items:
+ if i.game_pos == (x, y):
+ return i