def __init__(self, cell=None): Object.__init__(self, cell, char=0x101A, color=COLOR['WHITE']) self.block = [False, False, False] self.open = False self.char = self.CHAR[self.open] self.content = Fog(amount=1)
def __init__(self, cell=None): Object.__init__(self, cell, color=COLOR['WHITE'], char=np.random.choice([0x100A, 0x100B], p=[0.25, 0.75])) self.block = [True, False, True]
def __init__(self, cell=None, char=0x1008, color=COLOR['WHITE'], content=None): Object.__init__(self, cell, char, color) self.content = content self.block = [True, True, True]
def __init__(self, cell=None, carrier=None, char=0x1021, icon=0x2000, color=COLOR['WHITE']): Object.__init__(self, cell, char=char, color=color) self.carrier = carrier self.icon = icon self.frame = 0 if hasattr(self.__class__, 'ANIMATION'): self.animation = it.cycle(self.__class__.ANIMATION)
def __init__(self, cell=None): Object.__init__(self, cell, 0x100C) self.block = [True, True, True]
def __init__(self, cell=None, char=None): Object.__init__(self, cell, char=char) self.on = True
def __init__(self, cell=None): Object.__init__(self, cell, char=0x1012, color=COLOR['WHITE']) self.block = [False, False, True]
def __init__(self, cell=None): Object.__init__(self, cell, char=rd.choice( [0x1022, 0x1023]), color=COLOR['WHITE']) self.block = [False, True, True]
def __init__(self, cell=None): Object.__init__(self, cell, color=COLOR['WHITE']) self.block = [False, True, False] self.flammable = -1
def __init__(self, cell=None, brightness=7): Object.__init__(self, cell, char=0x1007) self.on = True self.brightness = brightness