aboutsummaryrefslogtreecommitdiff
path: root/BerryClient/models/Wall.py
diff options
context:
space:
mode:
Diffstat (limited to 'BerryClient/models/Wall.py')
-rw-r--r--BerryClient/models/Wall.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/BerryClient/models/Wall.py b/BerryClient/models/Wall.py
deleted file mode 100644
index 07c259e..0000000
--- a/BerryClient/models/Wall.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import logging
-
-log = logging.getLogger(__name__)
-
-class Wall:
- width: int = 6
- height: int = 5
- pos: tuple
- rotated: bool = False
- material_id: str = "stone"
- _bw: "BlockWorld"
-
- def __init__(self, pos, bw):
- self.pos = pos
- self._bw = bw
-
- def build(self):
- x, y, z = self.pos
-
- from_pos = (x,y,z)
-
- if self.rotated:
- z += self.width - 1
- else:
- x += self.width - 1
- y += self.height-1
-
- to_pos = (x,y,z)
-
- self._bw.set_blocks(*from_pos, *to_pos, self.material_id)