def __init__(self, x=None, y=None, flag=None, text_address=None): super(SwitchDoor, self).__init__(x, y) self.flag = flag if text_address is not None: self.text_pointer = EbTextPointer(address=text_address, size=4) else: self.text_pointer = EbTextPointer(size=4)
def __init__(self, x=None, y=None, type=DoorType.PERSON, text_address=None): super(NpcDoor, self).__init__(x, y) self.type = type if text_address is None: self.text_pointer = EbTextPointer(size=4) else: self.text_pointer = EbTextPointer(size=4, address=text_address)
def __init__(self, x=None, y=None, text_address=None, flag=None, destination_x=None, destination_y=None, destination_direction=DestinationDirection.DOWN, destination_style=None): super(Door, self).__init__(x, y) if text_address is not None: self.text_pointer = EbTextPointer(address=text_address, size=4) else: self.text_pointer = EbTextPointer(size=4) self.flag = flag self.destination_x = destination_x self.destination_y = destination_y self.destination_direction = destination_direction self.destination_style = destination_style
def setup(self): self.pointer = EbTextPointer(size=4)