Lines Matching refs:play

82 	_GP(play).score += amnt;  in GiveScore()
84 if ((amnt > 0) && (_GP(play).score_sound >= 0)) in GiveScore()
85 play_audio_clip_by_index(_GP(play).score_sound); in GiveScore()
205 if (_GP(play).globalscriptvars[index] != valu) { in SetGlobalInt()
209 _GP(play).globalscriptvars[index] = valu; in SetGlobalInt()
216 return _GP(play).globalscriptvars[index]; in GetGlobalInt()
223 strncpy(_GP(play).globalstrings[index], newval, MAX_MAXSTRLEN); in SetGlobalString()
225 _GP(play).globalstrings[index][MAX_MAXSTRLEN - 1] = 0; in SetGlobalString()
231 strcpy(strval, _GP(play).globalstrings[index]); in GetGlobalString()
251 _GP(play).takeover_data = data; in RunAGSGame()
297 _GP(play).globalscriptvars[ee] = 0; in RunAGSGame()
301 _GP(play).screen_is_faded_out = 1; in RunAGSGame()
387 newspd += _GP(play).game_speed_modifier; in SetGameSpeed()
395 return ::lround(get_current_fps()) - _GP(play).game_speed_modifier; in GetGameSpeed()
425 if (_GP(play).disabled_user_interface > 0) { in SetGameOption()
430 _GP(play).swap_portrait_side = 0; in SetGameOption()
457 _GP(play).fast_forward = 2; in SkipUntilCharacterStops()
458 _GP(play).skip_until_char_stops = cc; in SkipUntilCharacterStops()
463 if (_GP(play).skip_until_char_stops < 0) in EndSkippingUntilCharStops()
467 _GP(play).skip_until_char_stops = -1; in EndSkippingUntilCharStops()
486 _GP(play).in_cutscene = skipwith; in StartCutscene()
499 int retval = _GP(play).fast_forward; in EndCutscene()
500 _GP(play).in_cutscene = 0; in EndCutscene()
529 if (_GP(play).get_loc_name_save_cursor != _GP(play).get_loc_name_last_time) { in SaveCursorForLocationChange()
530 _GP(play).get_loc_name_save_cursor = _GP(play).get_loc_name_last_time; in SaveCursorForLocationChange()
531 _GP(play).restore_cursor_mode_to = GetCursorMode(); in SaveCursorForLocationChange()
532 _GP(play).restore_cursor_image_to = GetMouseCursor(); in SaveCursorForLocationChange()
533 …debug_script_log("Saving mouse: mode %d cursor %d", _GP(play).restore_cursor_mode_to, _GP(play).re… in SaveCursorForLocationChange()
548 if (_GP(play).get_loc_name_last_time != 1000 + mover) in GetLocationName()
550 _GP(play).get_loc_name_last_time = 1000 + mover; in GetLocationName()
552 …} else if ((_GP(play).get_loc_name_last_time > 1000) && (_GP(play).get_loc_name_last_time < 1000 +… in GetLocationName()
555 _GP(play).get_loc_name_last_time = -1; in GetLocationName()
561 VpPoint vpt = _GP(play).ScreenToRoomDivDown(xxx, yyy); in GetLocationName()
571 if (_GP(play).get_loc_name_last_time != 0) { in GetLocationName()
572 _GP(play).get_loc_name_last_time = 0; in GetLocationName()
582 if (_GP(play).get_loc_name_last_time != 2000 + onhs) in GetLocationName()
584 _GP(play).get_loc_name_last_time = 2000 + onhs; in GetLocationName()
597 if (_GP(play).get_loc_name_last_time != 3000 + aa) in GetLocationName()
599 _GP(play).get_loc_name_last_time = 3000 + aa; in GetLocationName()
604 if (_GP(play).get_loc_name_last_time != onhs) in GetLocationName()
606 _GP(play).get_loc_name_last_time = onhs; in GetLocationName()
627 …Bitmap *buffer = CopyScreenIntoBitmap(_GP(play).GetMainViewport().GetWidth(), _GP(play).GetMainVie… in SaveScreenShot()
661 VpPoint vpt = _GP(play).ScreenToRoomDivDown(xx, yy); in RoomProcessClick()
671 else if (_GP(play).auto_use_walkto_points == 0); in RoomProcessClick()
680 _GP(play).usedmode = mood; in RoomProcessClick()
699 VpPoint vpt = _GP(play).ScreenToRoomDivDown(xx, yy); in IsInteractionAvailable()
709 _GP(play).check_interaction_only = 1; in IsInteractionAvailable()
724 int ciwas = _GP(play).check_interaction_only; in IsInteractionAvailable()
725 _GP(play).check_interaction_only = 0; in IsInteractionAvailable()
741 _GP(play).speech_font = fontnum; in SetSpeechFont()
747 _GP(play).normal_font = fontnum; in SetNormalFont()
774 _GP(play).wait_counter = nloops; in WaitImpl()
775 _GP(play).wait_skipped_by = SKIP_NONE; in WaitImpl()
776 _GP(play).wait_skipped_by = SKIP_AUTOTIMER; // we set timer flag by default to simplify that case in WaitImpl()
777 _GP(play).wait_skipped_by_data = 0; in WaitImpl()
778 _GP(play).key_skip_wait = skip_type; in WaitImpl()
780 GameLoopUntilValueIsZero(&_GP(play).wait_counter); in WaitImpl()
784 return (_GP(play).wait_skipped_by & (SKIP_KEYPRESS | SKIP_MOUSECLICK)) != 0 ? 1 : 0; in WaitImpl()
787 return _GP(play).GetWaitSkipResult(); in WaitImpl()
807 _GP(play).wait_counter = 0; in SkipWait()