(self, map_x, map_y)
| 12 | self.map = [[0 for x in range(self.width)] for y in range(self.height)] |
| 13 | |
| 14 | def isValid(self, map_x, map_y): |
| 15 | if (map_x < 0 or map_x >= self.width or |
| 16 | map_y < 0 or map_y >= self.height): |
| 17 | return False |
| 18 | return True |
| 19 | |
| 20 | def isMovable(self, map_x, map_y): |
| 21 | return (self.map[map_y][map_x] == c.MAP_EMPTY) |