def pickUp(self, tile, weight): self.validify() if not isinstance(tile, Tile): raise TypeError('tile should be of [Tile]') tile.validify() return library.fishPickUp(self._ptr, tile._ptr, weight)
def pickUp(self, x, y, weight): self.validify() return library.fishPickUp(self._ptr, x, y, weight)