def __init__(self, name='Sir Foo'): try: super().__init__(name=name) except TypeError: AbstractGameUnit.__init__(self, name=name) self.max_hp = 40 self.health_meter = self.max_hp self.unit_type = 'friend'
def __init__(self, name=''): try: super().__init__(name=name) except TypeError: AbstractGameUnit.__init__(self, name=name) self.max_hp = 30 self.health_meter = self.max_hp self.unit_type = 'enemy' self.hut_number = 0
def __init__(self, name='Sir Foo'): AbstractGameUnit.__init__(self,name=name) self.max_hp = 40 self.health_meter = self.max_hp self.unit_type = 'friend'
def __init__(self, name='Sir Foo'): AbstractGameUnit.__init__(self) self.name = name self.health_meter = 40 self.max_hp = 40 self.unit_type = 'friend'
def __init__(self, name=''): AbstractGameUnit.__init__(self, name=name) self.max_hp = 30 self.health_meter = self.max_hp self.unit_type = 'enemy' self.hut_number = 0
def __init__(self, name): AbstractGameUnit.__init__(self) self.unit_type = 'enemy' self.name = name self.health_meter = 30 self.max_hp = 30