MCPcopy Create free account
hub / github.com/marblexu/PythonPlantsVsZombies / setMapGridType

Method setMapGridType

source/component/map.py:32–33  ·  view source on GitHub ↗
(self, map_x, map_y, type)

Source from the content-addressed store, hash-verified

30 map_y * c.GRID_Y_SIZE + c.GRID_Y_SIZE//5 * 3 + c.MAP_OFFSET_Y)
31
32 def setMapGridType(self, map_x, map_y, type):
33 self.map[map_y][map_x] = type
34
35 def getRandomMapIndex(self):
36 map_x = random.randint(0, self.width-1)

Callers 3

initBowlingMapMethod · 0.80
addPlantMethod · 0.80
killPlantMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected