start balcony

This commit is contained in:
AKreuzer
2024-05-26 15:28:47 +02:00
parent e47c8cf7ce
commit 33b34108e5
4 changed files with 28 additions and 5 deletions

View File

@@ -1,4 +1,13 @@
import random as rd
from buildings.elements.Window import Window
class Balcony:
def __init__(self, length, width):
def __init__(self, rdata, length : int, max_width : int, windows : Window):
self.rdata = rdata
self.length = length
self.width = width
self.max_width = max_width
self.windows = windows
def has_multiple_balcony(self):
if self.max_width < self.rdata["balcony"]["multiple"]["min_width"]: return False
return self.rdata["balcony"]["multiple"]["proba"] >= rd.random()