-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHuis.py
40 lines (29 loc) · 788 Bytes
/
Huis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#from Lid import Lid
class Huis:
def __init__(self, name):
self.name = name
self.tenants = []
self.eaters = []
self.cook = None
self.available = False
def addTenant(self, lid):
self.tenants.append(lid)
def isAvailable(self):
return self.available
def setAvailable(self,boolean):
self.available = boolean
def setCook(self, cook):
self.cook = cook
def getCook(self):
return self.cook
def hasCook(self):
if self.cook != None:
return True
def addEater(self, lid):
self.eaters.append(lid)
def getTenants(self):
return self.tenants
def getName(self):
return self.name
def getEaters(self):
return self.eaters