def __init__(self, row, col, sizeRow, sizeCol, health, sheild, imageName):
        super(TerranBuilding, self).__init__(row, col, sizeRow, sizeCol, health, 0, 0, 0, imageName)
        self.buildRound = 3
        self.Avatar = load.load_avatar('Terran/Advisor.gif')
        self.idleSounds = [load.load_sound('Terran/Bldg/TCsSca00.wav')]
        self.deathSound = [load.load_sound('Misc/explo5.wav')]

        TerranBuilding.terranBuildings.append(self)
    def __init__(self, row, col, sizeRow, sizeCol, health, sheild, imageName):
        super(ProtossBuilding, self).__init__(row, col, sizeRow, sizeCol, health, sheild, 0, 5, imageName)
        self.buildRound = 3
        self.Avatar = load.load_avatar('Protoss/Advisor.gif')
        self.idleSounds = [load.load_sound('Protoss/Bldg/pneWht00.wav')]
        self.deathSound = [load.load_sound('Misc/explo4.wav')]

        ProtossBuilding.protossBuildings.append(self)
Example #3
0
    def __init__(self,row,col,sizeRow, sizeCol,health,sheild,sheildRegen,healthRegen, attack, AttRange, MovRange, imageName):
        imageName = 'Protoss/' + imageName
        super(ProtossUnit,self).__init__(row,col,sizeRow,sizeCol,health,sheild,sheildRegen,healthRegen,attack,AttRange,MovRange,imageName)
        self.Avatar = load.load_avatar(imageName)

        ProtossUnit.ProtossUnits.append(self)