예제 #1
0
 def  setUp(self):
     """ Build the Pkmn, Abilities and Effect for the test """
     self.user = BuildPokemonBattleWrapper()
     self.target = BuildPokemonBattleWrapper()
     
     self.userAbility = Ability(None)
     self.targetAbility = Ability(None)
     
     self.user.setAbility(self.userAbility)
     self.target.setAbility(self.targetAbility)
     
     self.delegate = SwapAbilityDelegate()
예제 #2
0
 def buildStarter(self, species):
     """ Creates a Pokemon with Starter stats """
     self.name = species
     self.species = species
     self.level = 5
     self.ability = Ability()
     self.battleDelegate = PokemonBattleDelegate().buildStarter(self)
     self.displayDelegate = PokemonDisplayDelegate(self.species)
 
     return self
예제 #3
0
 def buildStarter(speciesName):
     """ Creates a Pokemon with Starter stats """
     name = speciesName
     species = SpeciesFactory.getSpecies(speciesName)
     level = 5
     pkmn = Pokemon(name, level, species)
     pkmn.id = ""
     
     pkmn.ability = Ability(None)
     pkmn.battleDelegate = PokemonBattleDelegateFactory.buildStarter(pkmn)
     pkmn.displayDelegate = PokemonDisplayDelegateFactory.buildStarter(species)
     # pkmn.experienceDelegate = ExperienceDelegateFactory.loadFromXML(pkmn, tree)
 
     return pkmn
예제 #4
0
 def setUp(self):
     """ Builds the ability """
     self.pkmn = BuildPokemonBattleWrapper()
     self.ability = Ability(None)
예제 #5
0
 def setUp(self):
     """ Builds the ability """
     self.ability = Ability(None)
예제 #6
0
 def setUp(self):
     """ Builds the delegate and side for use in the tests """
     self.ability = Ability(None)
예제 #7
0
 def setUp(self):
     """ Builds the delegate and side for use in the tests """
     self.pkmn = BuildPokemonBattleWrapper()
     self.attacker = BuildPokemonBattleWrapper()
     self.ability = Ability(None)