| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3b6a64f commit 08ed08d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,8 @@ def calcular_posicao(self, tempo): | |||
| 23 | 23 | return x, y, caracter | |
| 24 | 24 | ||
| 25 | 25 | def colidir(self, outro_ator): | |
| 26 | + if self.status == DESTRUIDO or outro_ator.status == DESTRUIDO: | ||
| 27 | + return False | ||
| 26 | 28 | x1, y1 = self.ponto_cartesiano_inteiro() | |
| 27 | 29 | x2, y2 = outro_ator.ponto_cartesiano_inteiro() | |
| 28 | 30 | ||
@@ -34,5 +36,6 @@ def esta_no_intervalo(coordenada1, coordenada2, intervalo=1): | |||
| 34 | 36 | self.status = DESTRUIDO | |
| 35 | 37 | outro_ator.status = DESTRUIDO | |
| 36 | 38 | return True | |
| 39 | + return False | ||
| 37 | 40 | ||
| 38 | 41 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments