Spaces:
Sleeping
Sleeping
Commit ·
73216d8
1
Parent(s): ef94613
a7
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ public class Team1Aircraft extends Aircraft {
|
|
| 181 |
this.secondShotAltitude = secondAlt;
|
| 182 |
|
| 183 |
// Retorna o projétil principal
|
| 184 |
-
return new Projectile(posX, this.posY, direction, 1, "
|
| 185 |
}
|
| 186 |
|
| 187 |
/**
|
|
@@ -328,7 +328,7 @@ public class Team2Aircraft extends Aircraft {
|
|
| 328 |
this.secondShotAltitude = secondAlt;
|
| 329 |
|
| 330 |
// Retorna o projétil principal
|
| 331 |
-
return new Projectile(posX, this.posY, direction, 1, "
|
| 332 |
}
|
| 333 |
|
| 334 |
/**
|
|
@@ -579,7 +579,7 @@ public class BattleMain {{
|
|
| 579 |
// Tiro duplo
|
| 580 |
shot = team1.doubleShot(p1PosX, 1);
|
| 581 |
if (shot != null) {{
|
| 582 |
-
System.out.println("
|
| 583 |
// Adicionar o segundo projétil em uma altitude diferente
|
| 584 |
int secAlt = team1.getSecondShotAltitude();
|
| 585 |
if (secAlt >= 0 && secAlt < battlefieldHeight) {{
|
|
@@ -620,7 +620,7 @@ public class BattleMain {{
|
|
| 620 |
// Tiro duplo
|
| 621 |
shot = team2.doubleShot(p2PosX, -1);
|
| 622 |
if (shot != null) {{
|
| 623 |
-
System.out.println("
|
| 624 |
// Adicionar o segundo projétil em uma altitude diferente
|
| 625 |
int secAlt = team2.getSecondShotAltitude();
|
| 626 |
if (secAlt >= 0 && secAlt < battlefieldHeight) {{
|
|
@@ -662,10 +662,10 @@ public class BattleMain {{
|
|
| 662 |
// Verificar se o projétil tem poder personalizado
|
| 663 |
if (p.getPower() > 0) {{
|
| 664 |
damage = p.getPower();
|
| 665 |
-
}} else if (p.symbol.contains("<
|
| 666 |
damage = team2.nuclearPower * 2;
|
| 667 |
-
System.out.println("
|
| 668 |
-
}} else if (p.symbol.contains("
|
| 669 |
damage = team2.doubleShotPower;
|
| 670 |
}} else if (p.symbol.equals("<=")) {{
|
| 671 |
damage = team2.missilePower;
|
|
@@ -695,10 +695,10 @@ public class BattleMain {{
|
|
| 695 |
// Verificar se o projétil tem poder personalizado
|
| 696 |
if (p.getPower() > 0) {{
|
| 697 |
damage = p.getPower();
|
| 698 |
-
}} else if (p.symbol.contains("-
|
| 699 |
damage = team1.nuclearPower * 2;
|
| 700 |
-
System.out.println("
|
| 701 |
-
}} else if (p.symbol.contains("
|
| 702 |
damage = team1.doubleShotPower;
|
| 703 |
}} else if (p.symbol.equals("=>")) {{
|
| 704 |
damage = team1.missilePower;
|
|
|
|
| 181 |
this.secondShotAltitude = secondAlt;
|
| 182 |
|
| 183 |
// Retorna o projétil principal
|
| 184 |
+
return new Projectile(posX, this.posY, direction, 1, "=>");
|
| 185 |
}
|
| 186 |
|
| 187 |
/**
|
|
|
|
| 328 |
this.secondShotAltitude = secondAlt;
|
| 329 |
|
| 330 |
// Retorna o projétil principal
|
| 331 |
+
return new Projectile(posX, this.posY, direction, 1, "<=");
|
| 332 |
}
|
| 333 |
|
| 334 |
/**
|
|
|
|
| 579 |
// Tiro duplo
|
| 580 |
shot = team1.doubleShot(p1PosX, 1);
|
| 581 |
if (shot != null) {{
|
| 582 |
+
System.out.println(">>> Time 1 disparou um TIRO DUPLO!");
|
| 583 |
// Adicionar o segundo projétil em uma altitude diferente
|
| 584 |
int secAlt = team1.getSecondShotAltitude();
|
| 585 |
if (secAlt >= 0 && secAlt < battlefieldHeight) {{
|
|
|
|
| 620 |
// Tiro duplo
|
| 621 |
shot = team2.doubleShot(p2PosX, -1);
|
| 622 |
if (shot != null) {{
|
| 623 |
+
System.out.println("<<< Time 2 disparou um TIRO DUPLO!");
|
| 624 |
// Adicionar o segundo projétil em uma altitude diferente
|
| 625 |
int secAlt = team2.getSecondShotAltitude();
|
| 626 |
if (secAlt >= 0 && secAlt < battlefieldHeight) {{
|
|
|
|
| 662 |
// Verificar se o projétil tem poder personalizado
|
| 663 |
if (p.getPower() > 0) {{
|
| 664 |
damage = p.getPower();
|
| 665 |
+
}} else if (p.symbol.contains("<-N-")) {{ // Míssil nuclear do Time 2
|
| 666 |
damage = team2.nuclearPower * 2;
|
| 667 |
+
System.out.println("!!! MISSIL NUCLEAR do Time 2 atingiu o Time 1!");
|
| 668 |
+
}} else if (p.symbol.contains("<=")) {{ // Tiro duplo do Time 2
|
| 669 |
damage = team2.doubleShotPower;
|
| 670 |
}} else if (p.symbol.equals("<=")) {{
|
| 671 |
damage = team2.missilePower;
|
|
|
|
| 695 |
// Verificar se o projétil tem poder personalizado
|
| 696 |
if (p.getPower() > 0) {{
|
| 697 |
damage = p.getPower();
|
| 698 |
+
}} else if (p.symbol.contains("-N->")) {{ // Míssil nuclear do Time 1
|
| 699 |
damage = team1.nuclearPower * 2;
|
| 700 |
+
System.out.println("!!! MISSIL NUCLEAR do Time 1 atingiu o Time 2!");
|
| 701 |
+
}} else if (p.symbol.contains("=>")) {{ // Tiro duplo do Time 1
|
| 702 |
damage = team1.doubleShotPower;
|
| 703 |
}} else if (p.symbol.equals("=>")) {{
|
| 704 |
damage = team1.missilePower;
|