self._tiles[index] = value
@property
- def width(self):
+ def width(self) -> int:
"""Width in tiles"""
return self._width
- @width.setter
- def width(self, new_width):
- self._width = new_width
-
@property
- def height(self):
+ def height(self) -> int:
"""Height in tiles"""
return self._height
- @height.setter
- def height(self, new_height):
- self._height = new_height
-
@property
- def tile_width(self):
+ def tile_width(self) -> int:
"""Width of each tile in pixels"""
return self._tile_width
- @tile_width.setter
- def tile_width(self, new_tile_width):
- self._tile_width = new_tile_width
-
@property
- def tile_height(self):
+ def tile_height(self) -> int:
"""Height of each tile in pixels"""
return self._tile_height
-
- @tile_height.setter
- def tile_height(self, new_tile_height):
- self._tile_height = new_tile_height