(self, a)
Kills the agent (if not already dead), removes them from the game and
        drops any load they were carrying in there previously occupied position.
Kills the agent (if not already dead), removes them from the game and
        drops any load they were carrying in there previously occupied position.
Kills the agent ( if not already dead ) removes them from the game and drops any load they were carrying in there previously occupied position .
def del_agent(self, a):
        ''' Kills the agent (if not already dead), removes them from the game and
        drops any load they were carrying in there previously occupied position. '''
        self.agent_population.remove(a)
        self.agent_map.set(a.x, a.y, None)
        a.alive = False
        if a.loaded:
            a.loaded = False
            self.terr.change(a.x, a.y, 1)
def del_agent ( self , a ) : self . agent_population . remove ( a ) self . agent_map . set ( a . x , a . y , None ) a . alive = False if a . loaded : a . loaded = False self . terr . change ( a . x , a . y , 1 )