MCPcopy Index your code
hub / github.com/marblexu/PythonPlantsVsZombies / showPlant

Method showPlant

source/component/map.py:40–45  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

38 return (map_x, map_y)
39
40 def showPlant(self, x, y):
41 pos = None
42 map_x, map_y = self.getMapIndex(x, y)
43 if self.isValid(map_x, map_y) and self.isMovable(map_x, map_y):
44 pos = self.getMapGridPos(map_x, map_y)
45 return pos

Callers 1

canSeedPlantMethod · 0.80

Calls 4

getMapIndexMethod · 0.95
isValidMethod · 0.95
isMovableMethod · 0.95
getMapGridPosMethod · 0.95

Tested by

no test coverage detected