Lines Matching refs:play

125 	if ((_GP(play).ground_level_areas_disabled & GLED_INTERACTION) == 0) {  in game_loop_check_ground_level_interactions()
135 if (onRegion != _GP(play).player_on_region) { in game_loop_check_ground_level_interactions()
138 int oldRegion = _GP(play).player_on_region; in game_loop_check_ground_level_interactions()
140 _GP(play).player_on_region = onRegion; in game_loop_check_ground_level_interactions()
148 if (_GP(play).player_on_region > 0) // player stands on region in game_loop_check_ground_level_interactions()
149 RunRegionInteraction(_GP(play).player_on_region, 0); in game_loop_check_ground_level_interactions()
208 …if (_GP(play).fast_forward || _GP(play).IsIgnoringInput()) { /* do nothing if skipping cutscene or… in check_mouse_controls()
209 } else if ((_GP(play).wait_counter != 0) && (_GP(play).key_skip_wait & SKIP_MOUSECLICK) != 0) { in check_mouse_controls()
210 _GP(play).SetWaitSkipResult(SKIP_MOUSECLICK, mbut); in check_mouse_controls()
211 } else if (_GP(play).text_overlay_on > 0) { in check_mouse_controls()
212 if (_GP(play).cant_skip_speech & SKIP_MOUSECLICK) { in check_mouse_controls()
213 remove_screen_overlay(_GP(play).text_overlay_on); in check_mouse_controls()
214 _GP(play).SetWaitSkipResult(SKIP_MOUSECLICK, mbut); in check_mouse_controls()
319 if ((_G(displayed_room) >= 0) && (_GP(play).abort_key > 0 && agskey == _GP(play).abort_key)) { in run_service_key_controls()
325 if ((agskey == '`') && (_GP(play).debug_mode > 0)) { in run_service_key_controls()
336 if ((agskey == eAGSKeyCodeCtrlD) && (_GP(play).debug_mode > 0)) { in run_service_key_controls()
345 (_GP(play).ground_level_areas_disabled == 0) ? "" : "[Ground areas disabled.", in run_service_key_controls()
383 …&& (_GP(play).wait_counter < 1) && (_GP(play).text_overlay_on == 0) && (_G(restrict_until) == 0)) { in run_service_key_controls()
386 _GP(play).debug_mode++; in run_service_key_controls()
388 _GP(play).debug_mode--; in run_service_key_controls()
418 if (_GP(play).fast_forward) { in check_keyboard_controls()
421 if (_GP(play).IsIgnoringInput()) { in check_keyboard_controls()
432 if ((_GP(play).text_overlay_on > 0) && (_GP(play).cant_skip_speech & SKIP_KEYPRESS)) { in check_keyboard_controls()
436 if ((_GP(play).skip_speech_specific_key > 0) && in check_keyboard_controls()
437 (kgn != _GP(play).skip_speech_specific_key)) { in check_keyboard_controls()
439 remove_screen_overlay(_GP(play).text_overlay_on); in check_keyboard_controls()
440 _GP(play).SetWaitSkipResult(SKIP_KEYPRESS, kgn); in check_keyboard_controls()
447 if ((_GP(play).wait_counter != 0) && (_GP(play).key_skip_wait & SKIP_KEYPRESS) != 0) { in check_keyboard_controls()
448 _GP(play).SetWaitSkipResult(SKIP_KEYPRESS, kgn); in check_keyboard_controls()
529 ((_GP(play).ground_level_areas_disabled & GLED_INTERACTION) == 0)) { in check_room_edges()
540 if ((_GP(play).entered_edge >= 0) && (_GP(play).entered_edge <= 3)) { in check_room_edges()
542 if (edgesActivated[_GP(play).entered_edge] == 0) in check_room_edges()
543 _GP(play).entered_edge = -10; in check_room_edges()
546 edgesActivated[_GP(play).entered_edge] = 0; in check_room_edges()
594 if (!_GP(play).fast_forward) { in game_loop_do_render_and_check_mouse()
606 auto view = _GP(play).GetRoomViewportAt(_G(mousex), _G(mousey)); in game_loop_do_render_and_check_mouse()
649 if (_GP(play).bg_anim_delay > 0) _GP(play).bg_anim_delay--; in game_loop_update_background_animation()
650 else if (_GP(play).bg_frame_locked); in game_loop_update_background_animation()
652 _GP(play).bg_anim_delay = _GP(play).anim_background_speed; in game_loop_update_background_animation()
653 _GP(play).bg_frame++; in game_loop_update_background_animation()
654 if ((size_t)_GP(play).bg_frame >= _GP(thisroom).BgFrameCount) in game_loop_update_background_animation()
655 _GP(play).bg_frame = 0; in game_loop_update_background_animation()
666 if (_GP(play).wait_counter > 0) _GP(play).wait_counter--; in game_loop_update_loop_counter()
667 if (_GP(play).shakesc_length > 0) _GP(play).shakesc_length--; in game_loop_update_loop_counter()
721 if ((_GP(play).no_hicolor_fadein) && (_GP(game).options[OPT_FADETYPE] == FADE_NORMAL)) in UpdateGameOnce()
722 _GP(play).screen_is_faded_out = 0; in UpdateGameOnce()
780 if (_GP(play).fast_forward) in UpdateGameOnce()
800 if ((_GP(play).get_loc_name_save_cursor >= 0) && in UpdateMouseOverLocation()
801 (_GP(play).get_loc_name_save_cursor != _GP(play).get_loc_name_last_time) && in UpdateMouseOverLocation()
805 _GP(play).get_loc_name_save_cursor = -1; in UpdateMouseOverLocation()
806 set_cursor_mode(_GP(play).restore_cursor_mode_to); in UpdateMouseOverLocation()
808 if (_G(cur_mode) == _GP(play).restore_cursor_mode_to) { in UpdateMouseOverLocation()
811 set_mouse_cursor(_GP(play).restore_cursor_image_to); in UpdateMouseOverLocation()
813 …debug_script_log("Restore mouse to mode %d cursor %d", _GP(play).restore_cursor_mode_to, _GP(play)… in UpdateMouseOverLocation()
836 if (_GP(play).text_overlay_on == 0) retval = 0; in ShouldStayInWaitMode()
866 _GP(play).disabled_user_interface--; in UpdateWaitMode()
908 _GP(play).disabled_user_interface++; in SetupLoopParameters()