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