예제 #1
0
    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)
예제 #2
0
    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]
예제 #3
0
    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]
예제 #4
0
    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)
예제 #5
0
    def __init__(self, cell=None):
        Object.__init__(self, cell, 0x100C)

        self.block = [True, True, True]
예제 #6
0
    def __init__(self, cell=None, char=None):
        Object.__init__(self, cell, char=char)

        self.on = True
예제 #7
0
    def __init__(self, cell=None):
        Object.__init__(self, cell, char=0x1012, color=COLOR['WHITE'])

        self.block = [False, False, True]
예제 #8
0
    def __init__(self, cell=None):
        Object.__init__(self, cell, char=rd.choice(
            [0x1022, 0x1023]), color=COLOR['WHITE'])

        self.block = [False, True, True]
예제 #9
0
    def __init__(self, cell=None):
        Object.__init__(self, cell, color=COLOR['WHITE'])

        self.block = [False, True, False]
        self.flammable = -1
예제 #10
0
    def __init__(self, cell=None, brightness=7):
        Object.__init__(self, cell, char=0x1007)

        self.on = True
        self.brightness = brightness