コード例 #1
0
ファイル: bala.py プロジェクト: afrodev/BCC-1S16-PI5-MISSEIS
 def __init__(self, base, anguloAzimute, angulo):
     Vector3D.__init__(self, base.x, base.y, base.z)
     self.anguloAzimute = anguloAzimute
     self.angulo = angulo
     self.vx = 0
     self.vy = 0
     self.vz = 0
     self.vZInicial = 0
     self.tempoVoando = 0
     self.massa = 1.565
     self.velocidade = 1175
     self.alcance = 4000
     self.atirada = False
コード例 #2
0
ファイル: aviao.py プロジェクト: afrodev/BCC-1S16-PI5-MISSEIS
 def __init__(self, x, y, z):
     Vector3D.__init__(self, x, y, z)
     self._tipo = randint(1, 2)  # Sorteia entre tipo 1 e 2
     # self._tipo = 2 # <================================================================================
     self._velocidade = 0 
     self._vx = 0 
     self._vy = 0        # Inicializa parametros
     self.inicializaPosicao()
     self.inicializaVelocidade() # Inicializa a velocidade de acordo com o tipo
     self._desiste = randint(1, 10)
     # self._desiste = 0 #<===============================================================================
     self._jaDesistiu = 0
     self._tempoVoando = 0
     self._tempoMudanca = numpy.random.normal(7.5, 1)
コード例 #3
0
ファイル: base.py プロジェクト: afrodev/BCC-1S16-PI5-MISSEIS
 def __init__(self, x, y, z):
     Vector3D.__init__(self, x, y, z)
     self._tipo = randint(1, 2)