def __doToonAttacks(self):
     if base.config.GetBool('want-toon-attack-anims', 1):
         track = Sequence(name='toon-attacks')
         camTrack = Sequence(name='toon-attacks-cam')
         ival, camIval = MovieFire.doFires(self.__findToonAttack(FIRE))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSOS.doSOSs(self.__findToonAttack(SOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieNPCSOS.doNPCSOSs(
             self.__findToonAttack(NPCSOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MoviePetSOS.doPetSOSs(
             self.__findToonAttack(PETSOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieHeal.doHeals(
             self.__findToonAttack(HEAL),
             self.battle.getInteractivePropTrackBonus() == HEAL)
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieTrap.doTraps(self.__findToonAttack(TRAP))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieLure.doLures(self.__findToonAttack(LURE))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSound.doSounds(self.__findToonAttack(SOUND))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieThrow.doThrows(self.__findToonAttack(THROW))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSquirt.doSquirts(
             self.__findToonAttack(SQUIRT))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieDrop.doDrops(self.__findToonAttack(DROP))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         if len(track) == 0:
             return (None, None)
         else:
             return (track, camTrack)
     else:
         return (None, None)
     return None
Exemple #2
0
 def __doToonAttacks(self):
     if base.config.GetBool('want-toon-attack-anims', 1):
         track = Sequence(name='toon-attacks')
         camTrack = Sequence(name='toon-attacks-cam')
         ival, camIval = MovieFire.doFires(self.__findToonAttack(FIRE))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSOS.doSOSs(self.__findToonAttack(SOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieNPCSOS.doNPCSOSs(self.__findToonAttack(NPCSOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MoviePetSOS.doPetSOSs(self.__findToonAttack(PETSOS))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         hasHealBonus = self.battle.getInteractivePropTrackBonus() == HEAL
         ival, camIval = MovieHeal.doHeals(self.__findToonAttack(HEAL), hasHealBonus)
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieTrap.doTraps(self.__findToonAttack(TRAP))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieLure.doLures(self.__findToonAttack(LURE))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSound.doSounds(self.__findToonAttack(SOUND))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieThrow.doThrows(self.__findToonAttack(THROW))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieSquirt.doSquirts(self.__findToonAttack(SQUIRT))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         ival, camIval = MovieDrop.doDrops(self.__findToonAttack(DROP))
         if ival:
             track.append(ival)
             camTrack.append(camIval)
         if len(track) == 0:
             return (None, None)
         else:
             return (track, camTrack)
     else:
         return (None, None)
     return None
Exemple #3
0
 def _Movie__doToonAttacks(self):
     if base.config.GetBool('want-toon-attack-anims', 1):
         ivals = []
         camIvals = []
         (ival, camIval) = MovieSOS.doSOSs(self._Movie__findToonAttack(SOS))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieHeal.doHeals(self._Movie__findToonAttack(HEAL))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieTrap.doTraps(self._Movie__findToonAttack(TRAP))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieLure.doLures(self._Movie__findToonAttack(LURE))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieSound.doSounds(self._Movie__findToonAttack(SOUND))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieThrow.doThrows(self._Movie__findToonAttack(THROW))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieSquirt.doSquirts(self._Movie__findToonAttack(SQUIRT))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         (ival, camIval) = MovieDrop.doDrops(self._Movie__findToonAttack(DROP))
         if ival:
             ivals.append(ival)
             camIvals.append(camIval)
         
         if len(ivals) == 0:
             return (None, None)
         else:
             return (Track(ivals, name = 'toon-attacks'), Track(camIvals, name = 'toon-attacks-cam'))
     else:
         return (None, None)
Exemple #4
0
 def __doToonAttacks(self):
     """ __doToonAttacks()
         Create a track of all toon attacks in the proper order
     """
     assert(self.notify.debug("doToonAttacks"))
     if base.config.GetBool("want-toon-attack-anims", 1):
         track = Sequence(name='toon-attacks')
         camTrack = Sequence(name='toon-attacks-cam')
         
         (ival, camIval) = MovieFire.doFires(self.__findToonAttack(FIRE))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
             
         (ival, camIval) = MovieSOS.doSOSs(self.__findToonAttack(SOS))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieNPCSOS.doNPCSOSs(self.__findToonAttack(NPCSOS))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MoviePetSOS.doPetSOSs(self.__findToonAttack(PETSOS))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         hasHealBonus = self.battle.getInteractivePropTrackBonus() == HEAL
         (ival, camIval) = MovieHeal.doHeals(self.__findToonAttack(HEAL), hasHealBonus)
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieTrap.doTraps(self.__findToonAttack(TRAP))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieLure.doLures(self.__findToonAttack(LURE))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieSound.doSounds(self.__findToonAttack(SOUND))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieThrow.doThrows(self.__findToonAttack(THROW))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieSquirt.doSquirts(
                                             self.__findToonAttack(SQUIRT))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         (ival, camIval) = MovieDrop.doDrops(self.__findToonAttack(DROP))
         if (ival):
             track.append(ival)
             camTrack.append(camIval)
         if (len(track) == 0):
             return (None, None)
         else:
             return (track, camTrack)
     else:
         return (None, None)