예제 #1
0
    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'
예제 #2
0
    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
예제 #3
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'
예제 #4
0
파일: knight.py 프로젝트: mal818/wargame
 def __init__(self, name='Sir Foo'):
     AbstractGameUnit.__init__(self)
     self.name = name
     self.health_meter = 40
     self.max_hp = 40
     self.unit_type = 'friend'
예제 #5
0
 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
예제 #6
0
파일: orcrider.py 프로젝트: mal818/wargame
 def __init__(self, name):
     AbstractGameUnit.__init__(self)
     self.unit_type = 'enemy'
     self.name = name
     self.health_meter = 30
     self.max_hp = 30
예제 #7
0
 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