Exemplo n.º 1
0
 def __init__(self, bullet, resource_mgr):
     # Call the base class constructor to init the State
     State.__init__(self, "seeking")
     # Set the survivor that this State will manipulate
     self.bullet = bullet
     self.resource_mgr = resource_mgr
     self.zombie_id = None
Exemplo n.º 2
0
    def __init__(self, graveyard, spawn_rate, resource_mgr):
        # Call the base class constructor to init the State
        State.__init__(self, "spawning")

        # Set the entity that this State will manipulate
        self.graveyard = graveyard

        self.spawn_rate = spawn_rate
        self.resource_mgr = resource_mgr
        self.next_spawn = None
Exemplo n.º 3
0
 def __init__(self, blood):
     # Call the base class constructor to init the State
     State.__init__(self, "fading")
     # Set the survivor that this State will manipulate
     self.blood = blood
Exemplo n.º 4
0
 def __init__(self, survivor, resource_mgr):
     # Call the base class constructor to init the State
     State.__init__(self, "attacking")
     # Set the survivor that this State will manipulate
     self.survivor = survivor
     self.resource_mgr = resource_mgr
Exemplo n.º 5
0
 def __init__(self, survivor, dead_image):
     # Call the base class constructor to init the State
     State.__init__(self, "dead")
     # Set the survivor that this State will manipulate
     self.survivor = survivor
     self.dead_image = dead_image
Exemplo n.º 6
0
 def __init__(self, survivor):
     # Call the base class constructor to init the State
     State.__init__(self, "seeking")
     # Set the survivor that this State will manipulate
     self.survivor = survivor
     self.supplies_id = None
Exemplo n.º 7
0
 def __init__(self, survivor):
     # Call the base class constructor to init the State
     State.__init__(self, "exploring")
     # Set the survivor that this State will manipulate
     self.survivor = survivor
Exemplo n.º 8
0
 def __init__(self, zombie, resource_mgr):
     # Call the base class constructor to init the State
     State.__init__(self, "feeding")
     # Set the Zombie that this State will manipulate
     self.zombie = zombie
     self.resource_mgr = resource_mgr
Exemplo n.º 9
0
 def __init__(self, zombie):
     State.__init__(self, "seeking")
     self.zombie = zombie
Exemplo n.º 10
0
 def __init__(self, zombie):
     # Call the base class constructor to init the State
     State.__init__(self, "wandering")
     # Set the Zombie that this State will manipulate
     self.zombie = zombie