def __init__(self,posx,posy,index,game):
     super(Chark,self).__init__(100,4,posx,posy,index,game)
     self.myString="C"+str(index)
     if((self.index+1)==(self.game.n/2)):
         #print self.myString,"you are using wand"
         self.equipment=Wand(self)
     else:
         self.equipment=Axe(self)
Exemple #2
0
class Chark(Player):
    def __init__(self, posx, posy, index, game):
        Player.__init__(self, 100, 4, posx, posy, index, game)
        self.myString = "C" + str(index)
        self.equipment = Axe(self)

    def teleport(self):
        super(Chark, self).teleport()
        self.equipment.enhance()

    def askForMove(self):
        print("You are a Chark (C%d) using Axe. (Range: %d, Damage: %d)" %
              (self.index, self.equipment.getRange(),
               self.equipment.getEffect()))
        super(Chark, self).askForMove()
Exemple #3
0
class Chark(Player):
    def __init__(self, posx, posy, index, game):
        super(Chark, self).__init__(100, 4, posx, posy, index, game)
        self.myString = "C" + str(index)
        self.equipment = Axe(self)

    def teleport(self):
        super(Chark, self).teleport()
        self.equipment.enhance()

    def askForMove(self):
        string = "You are a Chark (C" + str(
            self.index) + ") using Axe. (Range: " + str(
                self.equipment.getRange()) + ", Damage: " + str(
                    self.equipment.getEffect()) + ")"
        print string
        super(Chark, self).askForMove()
Exemple #4
0
 def __init__(self):
     self.name = "Tyrion Lannister"
     self.title = HighBorn()
     self.sex = "M"
     self.weapon = Axe()
     self.strength = 5
     self.accuracy = 0.60
     self.paring_prob = 0.50
     self.health = 100
class Chark(Player):
    def __init__(self,posx,posy,index,game):
        super(Chark,self).__init__(100,4,posx,posy,index,game)
        self.myString="C"+str(index)
        if((self.index+1)==(self.game.n/2)):
            #print self.myString,"you are using wand"
            self.equipment=Wand(self)
        else:
            self.equipment=Axe(self)
    def teleport(self):
        super(Chark,self).teleport()
        self.equipment.enhance()
    
    def askForMove(self):
        if (isinstance(self.equipment,Axe)):
            string="You are a Chark (C"+str(self.index)+") using Axe. (Range: "+str(self.equipment.getRange())+", Damage: "+str(self.equipment.getEffect())+")"
            print string
            super(Chark,self).askForMove()
        elif (isinstance(self.equipment,Wand)):
            string="You are a Chark (C"+str(self.index)+") using Wand. (Range: "+str(self.equipment.getRange())+", Healing effect: "+str(self.equipment.getEffect())+")"
            print string
            super(Chark,self).askForMoveHeal()
Exemple #6
0
 def __init__(self, posx, posy, index, game):
     super(Chark, self).__init__(100, 4, posx, posy, index, game)
     self.myString = "C" + str(index)
     self.equipment = Axe(self)
Exemple #7
0
 def __init__(self, posx, posy, index, game):
     Player.__init__(self, 100, 4, posx, posy, index, game)
     self.myString = "C" + str(index)
     self.equipment = Axe(self)