Lines Matching refs:x_right

474         const int x_right = game_x_right_bound(game);  in cent_birth_centipede()  local
477 new_head->coords.x = direction == EAST ? x_left : x_right; in cent_birth_centipede()
539 const int x_right = game_x_right_bound(game); in cent_init_level_centipedes() local
556 coords.x = dir == EAST ? x_left - i : x_right + i; in cent_init_level_centipedes()
1021 …oid cent_set_head_direction(CentState *state, Segment *head, int y_bottom, int x_left, int x_right) in cent_set_head_direction() argument
1047 if (head->coords.x >= x_right || mush != NULL) { in cent_set_head_direction()
1085 static void cent_do_reproduce(const GameData *game, CentState *state, Segment *head, int x_right, i… in cent_do_reproduce() argument
1099 new_coords.x = dir == EAST ? x_left : x_right; in cent_do_reproduce()
1117 const int x_right = game_x_right_bound(game); in cent_do_centipede() local
1136 cent_set_head_direction(state, head, y_bottom, x_left, x_right); in cent_do_centipede()
1138 if (head->coords.x == x_left || head->coords.x == x_right) { in cent_do_centipede()
1139 cent_do_reproduce(game, state, head, x_right, x_left, y_bottom); in cent_do_centipede()
1169 const int x_right = game_x_right_bound(game); in cent_try_spawn_flea() local
1172 flea->coords.x = (rand() % (x_right - x_left + 1)) + x_left; in cent_try_spawn_flea()
1242 const int x_right = game_x_right_bound(game); in cent_try_spawn_scorpion() local
1246 scorpion->coords.x = scorpion->direction == WEST ? x_right : x_left; in cent_try_spawn_scorpion()
1274 const int x_right = game_x_right_bound(game); in cent_do_scorpion() local
1278 if (scorpion->coords.x > x_right || scorpion->coords.x < x_left) { in cent_do_scorpion()
1306 const int x_right = game_x_right_bound(game); in cent_try_spawn_spider() local
1308 spider->coords.x = spider->direction == WEST ? x_right : x_left; in cent_try_spawn_spider()
1348 const int x_right = game_x_right_bound(game); in cent_do_spider() local
1351 if (new_coords.x > x_right || new_coords.x < x_left) { in cent_do_spider()
1663 const int x_right = game_x_right_bound(game); in cent_init_state() local
1694 (x_left + x_right) / 2, in cent_init_state()
1699 (x_left + x_right) / 2, in cent_init_state()
1706 const int grid_size = (y_bottom - y_top) * (x_right - x_left); in cent_init_state()