Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/a/darktower-rl-HEAD/critters.py   darktower-rl(Download)
            return result
        #check if player in los
        if util.has_los(crit.x, crit.y, player.x, player.y, _map.current.fov_map0):
            #this will actualy check if this creature is in player's los, not vice-versa
            crit.path = None #we reset path here
            #making us loose trails
            if not crit.path:
                if util.has_los(crit.x, crit.y, player.x, player.y, _map.current.fov_map0):
                    crit.seen_player(player.x, player.y)
                else: #we lost track of player - give up