Exemplo n.º 1
0
 def __init__(self,row,col):
     imageName = 'FireBat.gif'
     super(FireBat,self).__init__(row,col,1,1,50,0,0,0,30,3,6,imageName)
     sounds = load.load_sounds_in_Folder('Terran/Firebat/')
     self.deathSound = [sounds[1]]
     self.hitSound = [sounds[3]]
     self.idleSounds = sounds[5:]
     self.population = 2
Exemplo n.º 2
0
 def __init__(self,row,col):
     imageName = 'Arbiter.gif'
     super(Arbiter,self).__init__(row,col,2,2,200,150,10,0,20,5,8,imageName)
     sounds = load.load_sounds_in_Folder('Protoss/Arbiter/')
     self.deathSound = [sounds[0]]
     self.hitSound = [sounds[-1]]
     self.idleSounds = sounds[1:len(sounds)-1]
     self.population = 4
     self.AirUnit = True
Exemplo n.º 3
0
 def __init__(self,row,col):
     imageName = 'Zealot.gif'
     super(Zealot,self).__init__(row,col,1,1,100,100,5,0,32,1,6,imageName)
     sounds = load.load_sounds_in_Folder('Protoss/Zealot/')
     self.deathSound = [sounds[2]]
     self.hitSound = [sounds[3]]
     self.idleSounds = sounds[4:]
     self.xerror =  7
     self.population = 2
Exemplo n.º 4
0
    def __init__(self,row,col):
        imageName = 'Dragoon.gif'
        super(Dragoon,self).__init__(row,col,2,2,100,80,10,0,40,4,8,imageName)
        sounds = load.load_sounds_in_Folder('Protoss/Dragoon/')
        self.deathSound = [sounds[1]]
        self.hitSound = [sounds[0]]
        self.idleSounds = sounds[2:]
        self.population = 2

        self.xerror = 18
Exemplo n.º 5
0
 def __init__(self,row,col):
     imageName = 'Medic.gif'
     super(Medic,self).__init__(row,col,1,1,40,0,0,0,-20,6,6,imageName)
     sounds = load.load_sounds_in_Folder('Terran/Medic/')
     self.deathSound = [sounds[0]]
     self.hitSound = [sounds[-1]]
     self.idleSounds = sounds[2:len(sounds)-1]
     self.xerror =  5
     self.yerror = 5
     self.population = 2
Exemplo n.º 6
0
 def __init__(self,row,col):
     imageName = 'Marine.gif'
     super(Marine,self).__init__(row,col,1,1,40,0,0,0,24,5,7,imageName)
     sounds = load.load_sounds_in_Folder('Terran/Marine/')
     self.deathSound = [sounds[0]]
     self.hitSound = [sounds[2]]
     self.idleSounds = sounds[3:]
     self.xerror =  5
     self.yerror = 5
     self.population = 2
Exemplo n.º 7
0
    def __init__(self,row,col):
        imageName = 'Archon.gif'
        super(Archon,self).__init__(row,col,2,2,10,300,15,0,60,2,6,imageName)
        sounds = load.load_sounds_in_Folder('Protoss/Archon/')
        self.deathSound = [sounds[0]]
        self.hitSound = [sounds[1]]
        self.idleSounds = sounds[2:]
        self.population = 4

        self.xerror = -10
        self.yerror = -10
Exemplo n.º 8
0
    def __init__(self,row,col):
        imageName = 'Siege Tank.gif'
        super(SiegeTank,self).__init__(row,col,2,2,150,0,0,0,100,10,3,imageName)
        sounds = load.load_sounds_in_Folder('Terran/Tank/')
        self.deathSound = [sounds[0]]
        self.hitSound = [sounds[1]]
        self.idleSounds = sounds[2:]
        self.population = 4

        self.xerror = 0
        self.yerror = 0
Exemplo n.º 9
0
    def __init__(self,row,col):
        imageName = 'Battlecruiser.gif'
        super(BattleCrusier,self).__init__(row,col,2,2,500,0,0,0,60,5,8,imageName)
        self.image = load.load_image_smooth('Units/Terran/Battlecruiser.gif',scale = 1.2)
        sounds = load.load_sounds_in_Folder('Terran/Battle/')
        self.deathSound = [sounds[0]]
        self.hitSound = [sounds[-1]]
        self.idleSounds = sounds[2:len(sounds)-1]
        self.population = 6

        self.xerror = 0
Exemplo n.º 10
0
 def __init__(self,row,col):
     imageName = 'Dark Templar.gif'
     super(DarkTemplar,self).__init__(row,col,1,1,80,40,5,0,80,1,6,imageName)
     Trimage = self.image.copy()
     alpha = 100
     Trimage.fill((255,255,255,alpha), None, pygame.BLEND_RGBA_MULT)
     self.image = Trimage
     sounds = load.load_sounds_in_Folder('Protoss/DarkTemplar/')
     self.deathSound = [sounds[0]]
     self.hitSound = [sounds[-1]]
     self.idleSounds = sounds[4:len(sounds)-1]
     self.population = 2
     self.stealth = True
Exemplo n.º 11
0
 def __init__(self,row,col):
     imageName = 'Ghost.gif'
     super(Ghost,self).__init__(row,col,1,1,40,0,0,0,30,8,6,imageName)
     Trimage = self.image.copy()
     alpha = 100
     Trimage.fill((255,255,255,alpha), None, pygame.BLEND_RGBA_MULT)
     self.image = Trimage
     sounds = load.load_sounds_in_Folder('Terran/Ghost/')
     self.deathSound = [sounds[0]]
     self.hitSound = [sounds[2]]
     self.idleSounds = sounds[3:]
     self.population = 2
     self.stealth = True
Exemplo n.º 12
0
    def __init__(self,row,col):
        imageName = 'SCV.gif'
        super(SCV,self).__init__(row,col,1,1,60,0,0,0,10,1,12,imageName)
        sounds = load.load_sounds_in_Folder('Terran/SCV/')
        self.deathSound = [sounds[0]]
        self.hitSound = sounds[1:3]
        self.idleSounds = sounds[3:]
        self.population = 1

        self.canBuild = True
        self.Build = [TerranBuildings.CommandCenter,TerranBuildings.SupplyDepot,
                      TerranBuildings.Gas,TerranBuildings.Barrack,TerranBuildings.EngineeringBay,
                      TerranBuildings.MissileTurret,TerranBuildings.Academy]

        self.AdvancedBuild = [TerranBuildings.Factory,TerranBuildings.Starport,
                              TerranBuildings.EngineeringBay,TerranBuildings.Armory]

        self.xerror = 5
Exemplo n.º 13
0
    def __init__(self,row,col):
        imageName = 'Probe.gif'
        super(Probe,self).__init__(row,col,1,1,20,20, 5,0,10,1,12,imageName)
        sounds = load.load_sounds_in_Folder('Protoss/Probe/')
        self.deathSound = [sounds[2]]
        self.hitSound = sounds[0:2]
        self.idleSounds = sounds[3:]
        self.population = 1

        self.canBuild = True
        self.Build = [ProtossBuildings.Nexus,ProtossBuildings.Pylon,ProtossBuildings.Gas,
                      ProtossBuildings.Gateway,ProtossBuildings.Forge,ProtossBuildings.Cannon,
                      ProtossBuildings.CyberneticsCore]

        self.AdvancedBuild = [ProtossBuildings.RoboticsFacility,ProtossBuildings.Stargate,
                              ProtossBuildings.TwilightCouncil,
                              ProtossBuildings.RoboticsSupportBay,ProtossBuildings.FleetBeacon,
                              ProtossBuildings.TemplarArchives,ProtossBuildings.Observatory,
                              ProtossBuildings.ArbiterTribunal]

        self.xerror = 5