예제 #1
0
 def makeHooks(self):
     ants.Insect.reduce_armor = utils.class_method_wrapper(
         ants.Insect.reduce_armor, post=dead_insects)
     ants.FireAnt.reduce_armor = utils.class_method_wrapper(
         ants.FireAnt.reduce_armor, post=dead_insects)
     ants.AntColony.remove_ant = utils.class_method_wrapper(
         ants.AntColony.remove_ant, post=removed_ant)
예제 #2
0
 def makeHooks(self):
     ants.Insect.reduce_armor = utils.class_method_wrapper(ants.Insect.reduce_armor, post=dead_insects)
     ants.AntColony.remove_ant = utils.class_method_wrapper(ants.AntColony.remove_ant, post=removed_ant)