(self, map_x, map_y)
| 26 | return (x // c.GRID_X_SIZE, y // c.GRID_Y_SIZE) |
| 27 | |
| 28 | def getMapGridPos(self, map_x, map_y): |
| 29 | return (map_x * c.GRID_X_SIZE + c.GRID_X_SIZE//2 + c.MAP_OFFSET_X, |
| 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 |
no outgoing calls
no test coverage detected