Exemplo n.º 1
0
    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'
Exemplo n.º 2
0
    def testReflection(self):
        fabrica = FactoryReflection()
        guerreiro = fabrica.criar_guerreiro("TanTan")

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