Lines Matching refs:distToPlayer
3611 double distToPlayer = 0; in actMonster() local
3628 if (!distToPlayer) in actMonster()
3630 …distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in actMonster()
3636 if (newDistToPlayer < distToPlayer) in actMonster()
3638 distToPlayer = newDistToPlayer; in actMonster()
5031 double distToPlayer = 0; in actMonster() local
5048 if (!distToPlayer) in actMonster()
5050 …distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in actMonster()
5056 if (newDistToPlayer < distToPlayer) in actMonster()
5058 distToPlayer = newDistToPlayer; in actMonster()
6844 real_t distToPlayer = 0.f; in actMonster() local
6850 if ( !distToPlayer ) in actMonster()
6852 …distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in actMonster()
6858 if ( newDistToPlayer < distToPlayer ) in actMonster()
6860 distToPlayer = newDistToPlayer; in actMonster()
6975 real_t distToPlayer = 0.f; in actMonster() local
6981 if ( !distToPlayer ) in actMonster()
6983 …distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in actMonster()
6989 if ( newDistToPlayer < distToPlayer ) in actMonster()
6991 distToPlayer = newDistToPlayer; in actMonster()