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

Method isMovable

source/component/map.py:20–21  ·  view source on GitHub ↗
(self, map_x, map_y)

Source from the content-addressed store, hash-verified

18 return True
19
20 def isMovable(self, map_x, map_y):
21 return (self.map[map_y][map_x] == c.MAP_EMPTY)
22
23 def getMapIndex(self, x, y):
24 x -= c.MAP_OFFSET_X

Callers 1

showPlantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected