Files
GDMC-2024/buildings/elements/Balcony.py
2024-05-26 15:28:47 +02:00

13 lines
489 B
Python

import random as rd
from buildings.elements.Window import Window
class Balcony:
def __init__(self, rdata, length : int, max_width : int, windows : Window):
self.rdata = rdata
self.length = length
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()