예제 #1
0
파일: Testes.py 프로젝트: italolourenco/oi
    def testAtactReflection(self):
        fabrica = FactoryReflection()
        guerreiro = fabrica.criar_guerreiro("Seak")
        defensor = fabrica.criar_guerreiro("MongeBomb")
        guerreiro.atacar(defensor,None,None,None)

        if defensor.getEnergia() == 75:
            print 'True'
예제 #2
0
파일: Testes.py 프로젝트: italolourenco/oi
    def testReflection(self):
        fabrica = FactoryReflection()
        guerreiro = fabrica.criar_guerreiro("TanTan")

        if type(guerreiro) == type(TanTan()):
            print 'True'