Home
last modified time | relevance | path

Searched refs:_GP (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/main/
H A Dengine.cpp278 _GP(mouse).SetSpeed(_GP(usetup).mouse_speed); in engine_init_mouse()
338 _GP(AssetMgr)->AddLibrary(_GP(ResPaths).AudioDir2, "audio"); in engine_assign_assetpaths()
593 _GP(spriteset).Precache(_GP(game).mcurs[ee].pic); in engine_init_game_settings()
596 if (_GP(game).mcurs[ee].view >= _GP(game).numviews) in engine_init_game_settings()
676 _GP(play).debug_mode = _GP(game).options[OPT_DEBUGMODE]; in engine_init_game_settings()
740 _GP(play).totalscore = _GP(game).totalscore; in engine_init_game_settings()
789 _GP(play).narrator_speech = _GP(game).playercharacter; in engine_init_game_settings()
794 strcpy(_GP(play).game_name, _GP(game).gamename); in engine_init_game_settings()
837 _GP(scsystem).os = _GP(usetup).override_script_os; in engine_setup_scsystem_auxiliary()
945 _GP(ResPaths).GamePak.Path = _GP(usetup).main_data_file; in engine_init_gamedata()
[all …]
H A Dengine_setup.cpp71 GUIMain *cgp = &_GP(guis)[i]; in convert_gui_to_game_resolution()
107 _GP(game).chars[i].x /= mul; in convert_objects_to_data_resolution()
108 _GP(game).chars[i].y /= mul; in convert_objects_to_data_resolution()
114 _GP(guiinv)[i].OnResized(); in convert_objects_to_data_resolution()
119 _GP(scsystem).width = _GP(game).GetGameRes().Width; in engine_setup_system_gamesize()
120 _GP(scsystem).height = _GP(game).GetGameRes().Height; in engine_setup_system_gamesize()
258_GP(usetup).mouse_ctrl_enabled ? "enabled" : "disabled", _GP(mouse).GetSpeedUnit(), _GP(mouse).Get… in engine_post_gfxmode_mouse_setup()
263 if (_GP(usetup).mouse_auto_lock && _GP(scsystem).windowed != 0) in engine_post_gfxmode_mouse_setup()
314 …if (_GP(play).mboundx1 == 0 && _GP(play).mboundy1 == 0 && _GP(play).mboundx2 == 0 && _GP(play).mbo… in on_coordinates_scaling_changed()
315 _GP(mouse).SetMoveLimit(_GP(play).GetMainViewport()); in on_coordinates_scaling_changed()
[all …]
H A Dconfig.cpp213 _GP(usetup).Screen.DriverID = "OGL"; in config_defaults()
215 _GP(usetup).audio_backend = 1; in config_defaults()
216 _GP(usetup).translation = ""; in config_defaults()
229 _GP(usetup).Screen.DriverID = INIreadstring(cfg, "misc", "gfxdriver", _GP(usetup).Screen.DriverID); in read_legacy_graphics_config()
318 _GP(usetup).audio_backend = INIreadint(cfg, "sound", "enabled", _GP(usetup).audio_backend); in apply_config()
325_GP(usetup).Screen.DriverID = INIreadstring(cfg, "graphics", "driver", _GP(usetup).Screen.DriverID… in apply_config()
369 _GP(usetup).mouse_speed = 1.f; in apply_config()
408 if (_GP(usetup).Screen.DriverID.IsEmpty() || _GP(usetup).Screen.DriverID.CompareNoCase("DX5") == 0) in post_config()
413 _GP(usetup).Screen.Filter.UserRequest = _GP(usetup).Screen.Filter.ID; in post_config()
423 _GP(usetup).user_data_dir = Path::MakePathNoSlash(_GP(usetup).user_data_dir); in post_config()
[all …]
H A Dgame_run.cpp171 if (_GP(usetup).mouse_auto_lock && _GP(scsystem).windowed) in lock_mouse_on_click()
372_GP(game).chars[chd].scrname, _GP(game).chars[chd].view + 1, _GP(game).chars[chd].loop, _GP(game).… in run_service_key_controls()
373 _GP(game).chars[chd].x, _GP(game).chars[chd].y, _GP(game).chars[chd].z, in run_service_key_controls()
374_GP(game).chars[chd].idleview, _GP(game).chars[chd].idletime, _GP(game).chars[chd].idleleft, in run_service_key_controls()
375_GP(game).chars[chd].walking, _GP(game).chars[chd].animating, _GP(game).chars[chd].following, in run_service_key_controls()
540 if ((_GP(play).entered_edge >= 0) && (_GP(play).entered_edge <= 3)) { in check_room_edges()
649 if (_GP(play).bg_anim_delay > 0) _GP(play).bg_anim_delay--; in game_loop_update_background_animation()
652 _GP(play).bg_anim_delay = _GP(play).anim_background_speed; in game_loop_update_background_animation()
654 if ((size_t)_GP(play).bg_frame >= _GP(thisroom).BgFrameCount) in game_loop_update_background_animation()
666 if (_GP(play).wait_counter > 0) _GP(play).wait_counter--; in game_loop_update_loop_counter()
[all …]
H A Dupdate.cpp175 if (_GP(play).gscript_timer > 0) _GP(play).gscript_timer--; in update_script_timers()
177 if (_GP(play).script_timers[aa] > 1) _GP(play).script_timers[aa]--; in update_script_timers()
242 _GP(play).messagetime--; in update_speech_and_messages()
244 if (_GP(play).speech_has_voice && !_GP(play).speech_in_post_state) { in update_speech_and_messages()
249 _GP(play).messagetime = 0; in update_speech_and_messages()
252 if (_GP(play).messagetime < 1 && _GP(play).speech_display_post_time_ms > 0 && in update_speech_and_messages()
257 _GP(play).speech_in_post_state = !_GP(play).speech_in_post_state; in update_speech_and_messages()
267 _GP(play).SetIgnoreInput(_GP(play).ignore_user_input_after_text_timeout_ms); in update_speech_and_messages()
335 …(_GP(play).speech_has_voice || _GP(play).speech_in_post_state || _GP(play).close_mouth_speech_time… in update_sierra_speech()
342 (_GP(play).messagetime < _GP(play).close_mouth_speech_time) && in update_sierra_speech()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/game/
H A Dgame_init.cpp102 …ccAddExternalDynamicObject(_GP(game).audioClips[i].scriptName, &_GP(game).audioClips[i], &_GP(ccDy… in InitAndRegisterAudioObjects()
108 _GP(characterScriptObjNames).resize(_GP(game).numcharacters); in InitAndRegisterCharacters()
115 _GP(game).chars[i].blinktimer = _GP(game).chars[i].blinkinterval; in InitAndRegisterCharacters()
123 ccRegisterManagedObject(&_GP(game).chars[i], &_GP(ccDynamicCharacter)); in InitAndRegisterCharacters()
126 _GP(characterScriptObjNames)[i] = _GP(game).chars[i].scrname; in InitAndRegisterCharacters()
127 …ccAddExternalDynamicObject(_GP(characterScriptObjNames)[i], &_GP(game).chars[i], &_GP(ccDynamicCha… in InitAndRegisterCharacters()
161 _GP(guiScriptObjNames).resize(_GP(game).numgui); in InitAndRegisterGUI()
171 _GP(guiScriptObjNames)[i] = _GP(guis)[i].Name; in InitAndRegisterGUI()
343 _GP(play).charProps.resize(_GP(game).numcharacters); in InitGameState()
362 _GP(play).score_sound = _GP(game).scoreClipID; in InitGameState()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/ac/
H A Dglobal_gui.cpp57 if (_GP(guis)[ii].Name.IsEmpty()) in FindGUIID()
59 if (_GP(guis)[ii].Name == GUIName) in FindGUIID()
61 …if ((_GP(guis)[ii].Name[0u] == 'g') && (ags_stricmp(_GP(guis)[ii].Name.GetCStr() + 1, GUIName) == … in FindGUIID()
74 if (_GP(guis)[ifn].IsVisible()) { in InterfaceOn()
78 _GP(guis)[ifn].SetVisible(true); in InterfaceOn()
84 _GP(guis)[ifn].Poll(); in InterfaceOn()
89 if (!_GP(guis)[ifn].IsVisible()) { in InterfaceOff()
94 _GP(guis)[ifn].SetVisible(false); in InterfaceOff()
97 _GP(guis)[ifn].GetControl(_GP(guis)[ifn].MouseOverCtrl)->OnMouseLeave(); in InterfaceOff()
98 _GP(guis)[ifn].MouseOverCtrl = -1; in InterfaceOff()
[all …]
H A Dglobal_audio.cpp87_GP(ambient)[channel].maxdist = ((x > _GP(thisroom).Width / 2) ? x : (_GP(thisroom).Width - x)) - … in PlayAmbientSound()
96 if (_GP(play).fast_forward) in IsChannelPlaying()
109 if (_GP(play).fast_forward) in IsSoundPlaying()
143 if (_GP(play).fast_forward) in PlaySoundEx()
203 if ((_GP(play).fast_forward) && (_GP(play).skip_until_char_stops < 0)) in IsMusicPlaying()
250 _GP(play).music_queue[_GP(play).music_queue_size] = musnum; in PlayMusicQueued()
486 return _GP(play).want_speech >= 0 ? _GP(play).want_speech : -(_GP(play).want_speech + 1); in GetVoiceMode()
569 _GP(play).music_vol_was = _GP(play).music_master_volume; in play_voice_clip_impl()
572 _GP(play).music_master_volume = -_GP(play).speech_music_drop; in play_voice_clip_impl()
574 _GP(play).music_master_volume -= _GP(play).speech_music_drop; in play_voice_clip_impl()
[all …]
H A Droom.cpp190 if (!_GP(game).AllowRelativeRes() || !_GP(thisroom).IsRelativeRes()) in convert_room_background_to_game_res()
334 _GP(game).chars[_GP(play).temporarily_turned_off_character].on = 1; in unload_old_room()
468 load_room(room_filename, &_GP(thisroom), _GP(game).IsLegacyHiRes(), _GP(game).SpriteInfos); in load_new_room()
471 (_GP(thisroom).GameID != _GP(game).uniqueid)) { in load_new_room()
490 _GP(play).room_width = _GP(thisroom).Width; in load_new_room()
491 _GP(play).room_height = _GP(thisroom).Height; in load_new_room()
492 _GP(play).anim_background_speed = _GP(thisroom).BgAnimSpeed; in load_new_room()
493 _GP(play).bg_anim_delay = _GP(play).anim_background_speed; in load_new_room()
709 _GP(game).chars[ff].room = _GP(game).chars[_GP(game).chars[ff].following].room; in load_new_room()
1044 if (_GP(thisroom).BgFrames[_GP(play).bg_frame].IsPaletteShared) in on_background_frame_change()
[all …]
H A Ddisplay.cpp119 if (_GP(topBar).wantIt) { in _display_main()
122 int topBarWid = wgettextwidth_compensate(_GP(topBar).text, _GP(topBar).font); in _display_main()
240 alphaChannel = _GP(guis)[_GP(game).options[OPT_TWCUSTOM]].HasAlphaChannel(); in _display_main()
330 _GP(play).SetIgnoreInput(_GP(play).ignore_user_input_after_text_timeout_ms); in _display_main()
345 if ((_GP(play).messagetime < 0) && (_GP(play).fast_forward)) in _display_main()
435 if (_GP(play).text_speed + _GP(play).text_speed_modifier <= 0) in GetTextDisplayTime()
637 int borwid = _GP(game).SpriteInfos[get_but_pic(&_GP(guis)[twgui], 4)].Width + in get_textwindow_border_width()
638 _GP(game).SpriteInfos[get_but_pic(&_GP(guis)[twgui], 5)].Width; in get_textwindow_border_width()
651 return _GP(game).SpriteInfos[get_but_pic(&_GP(guis)[twgui], 6)].Height; in get_textwindow_top_border_height()
730 if (_GP(play).top_bar_backcolor != _GP(play).top_bar_bordercolor) { in draw_text_window_and_bar()
[all …]
H A Dglobal_game.cpp82 _GP(play).score += amnt; in GiveScore()
279 if (_GP(AssetMgr)->AddLibrary(_GP(ResPaths).GamePak.Path) != Shared::kAssetNoError) in RunAGSGame()
289 _GP(spriteset).Reset(); in RunAGSGame()
353 return _GP(game).numgui; in GetGameParameter()
457 _GP(play).fast_forward = 2; in SkipUntilCharacterStops()
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()
566 if ((xxx >= _GP(thisroom).Width) | (xxx < 0) | (yyy < 0) | (yyy >= _GP(thisroom).Height)) in GetLocationName()
680 _GP(play).usedmode = mood; in RoomProcessClick()
[all …]
H A Dmouse.cpp94 _GP(play).mboundx1 = x1; in SetMouseBounds()
95 _GP(play).mboundx2 = x2; in SetMouseBounds()
96 _GP(play).mboundy1 = y1; in SetMouseBounds()
97 _GP(play).mboundy2 = y2; in SetMouseBounds()
104 const int hotspotx = _GP(game).mcurs[newcurs].hotx, hotspoty = _GP(game).mcurs[newcurs].hoty; in set_mouse_cursor()
127 ((_GP(game).hotdot > 0) || (_GP(game).invhotdotsprite > 0))) { in set_mouse_cursor()
342 if ((_GP(game).invinfo[invnum].hotx > 0) || (_GP(game).invinfo[invnum].hoty > 0)) { in update_inv_cursor()
344 _GP(game).mcurs[MODE_USE].hotx = _GP(game).invinfo[invnum].hotx; in update_inv_cursor()
345 _GP(game).mcurs[MODE_USE].hoty = _GP(game).invinfo[invnum].hoty; in update_inv_cursor()
347 _GP(game).mcurs[MODE_USE].hotx = _GP(game).SpriteInfos[cursorSprite].Width / 2; in update_inv_cursor()
[all …]
H A Dgui.cpp293 _GP(guis)[guiid].Poll(); in GUI_ProcessClick()
431 if (_GP(guis)[a].ZOrder < _GP(guis)[_GP(play).gui_draw_order[b]].ZOrder) { in update_gui_zorder()
438 _GP(play).gui_draw_order[b + 1] = _GP(play).gui_draw_order[b]; in update_gui_zorder()
514 …if ((_GP(guis)[aa].X > xx) || (_GP(guis)[aa].Y > yy) || (_GP(guis)[aa].Y + _GP(guis)[aa].Height < … in adjust_x_for_guis()
517 …if (((_GP(guis)[aa].BgColor == 0) && (_GP(guis)[aa].BgImage < 1)) || (_GP(guis)[aa].Transparency =… in adjust_x_for_guis()
521 if (_GP(guis)[aa].X + _GP(guis)[aa].Width >= get_fixed_pixel_size(280)) in adjust_x_for_guis()
524 if (xx < _GP(guis)[aa].X + _GP(guis)[aa].Width) in adjust_x_for_guis()
525 xx = _GP(guis)[aa].X + _GP(guis)[aa].Width + 2; in adjust_x_for_guis()
540 …if (((_GP(guis)[aa].BgColor == 0) && (_GP(guis)[aa].BgImage < 1)) || (_GP(guis)[aa].Transparency =… in adjust_y_for_guis()
547 if (yy < _GP(guis)[aa].Y + _GP(guis)[aa].Height) in adjust_y_for_guis()
[all …]
H A Dglobal_screen.cpp60 if (_GP(play).fast_forward) in ShakeScreen()
69 _GP(play).shakesc_length = 10; in ShakeScreen()
70 _GP(play).shakesc_delay = 2; in ShakeScreen()
99 _GP(play).shakesc_length = 0; in ShakeScreen()
100 _GP(play).shakesc_delay = 0; in ShakeScreen()
101 _GP(play).shakesc_amount = 0; in ShakeScreen()
127 _GP(play).screen_tint = -1; in TintScreen()
139 if (_GP(play).fast_forward) in my_fade_out()
143 …_G(gfxDriver)->FadeOut(spdd, _GP(play).fade_to_red, _GP(play).fade_to_green, _GP(play).fade_to_blu… in my_fade_out()
172 _GP(play).fade_to_red = red; in SetFadeColor()
[all …]
H A Dglobal_display.cpp64 snprintf(_GP(topBar).text, sizeof(_GP(topBar).text), "%s", get_translation(title)); in DisplayTopBar()
68 _GP(play).top_bar_ypos = ypos; in DisplayTopBar()
70 _GP(play).top_bar_textcolor = ttexcol; in DisplayTopBar()
72 _GP(play).top_bar_backcolor = backcol; in DisplayTopBar()
74 _GP(topBar).wantIt = 1; in DisplayTopBar()
75 _GP(topBar).font = FONT_NORMAL; in DisplayTopBar()
76 _GP(topBar).height = getfontheight_outlined(_GP(topBar).font); in DisplayTopBar()
77_GP(topBar).height += data_to_game_coord(_GP(play).top_bar_borderwidth) * 2 + get_fixed_pixel_size… in DisplayTopBar()
80 if (_GP(play).top_bar_font >= 0) in DisplayTopBar()
81 _GP(topBar).font = _GP(play).top_bar_font; in DisplayTopBar()
[all …]
H A Dglobal_drawing_surface.cpp46 #define RAW_START() _GP(play).raw_drawing_surface = _GP(thisroom).BgFrames[_GP(play).bg_frame].Grap…
54 PBitmap source = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawSaveScreen()
65 PBitmap deston = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawRestoreScreen()
83 PBitmap deston = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawRestoreScreenTinted()
260 _GP(play).raw_modified[_GP(play).bg_frame] = 1; in RawDrawLine()
263 PBitmap bg = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawDrawLine()
276 _GP(play).raw_modified[_GP(play).bg_frame] = 1; in RawDrawCircle()
277 PBitmap bg = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawDrawCircle()
283 _GP(play).raw_modified[_GP(play).bg_frame] = 1; in RawDrawRectangle()
287 PBitmap bg = _GP(thisroom).BgFrames[_GP(play).bg_frame].Graphic; in RawDrawRectangle()
[all …]
H A Ddialog.cpp343 actualpicwid = _GP(game).SpriteInfos[_GP(game).dialog_bullet].Width + 3; in write_dialog_options()
383_GP(getDialogOptionsDimensionsFunc).params[0].SetDynamicObject(&_GP(ccDialogOptionsRendering), &_G… in get_custom_dialog_options_dimensions()
473 bullet_wid = _GP(game).SpriteInfos[_GP(game).dialog_bullet].Width + 3; in Prepare()
544 GUIMain *guib = &_GP(guis)[_GP(game).options[OPT_DIALOGIFACE]]; in Show()
628_GP(renderDialogOptionsFunc).params[0].SetDynamicObject(&_GP(ccDialogOptionsRendering), &_GP(ccDia… in Redraw()
646 padding = _GP(guis)[_GP(game).options[OPT_DIALOGIFACE]].Padding; in Redraw()
657 if (_GP(play).min_dialogoption_width > _GP(play).max_dialogoption_width) in Redraw()
704 GUIMain *guib = &_GP(guis)[_GP(game).options[OPT_DIALOGIFACE]]; in Redraw()
716 GUIMain *guib = &_GP(guis)[_GP(game).options[OPT_DIALOGIFACE]]; in Redraw()
815_GP(runDialogOptionRepExecFunc).params[0].SetDynamicObject(&_GP(ccDialogOptionsRendering), &_GP(cc… in Run()
[all …]
H A Dglobal_character.cpp101 Character_FaceCharacter(&_GP(game).chars[cha], &_GP(game).chars[toface], BLOCKING); in FaceCharacter()
248 return _GP(game).playercharacter; in GetPlayerCharacter()
359 if (_GP(game).chars[chaa].on != 1) { in MoveCharacterBlocking()
380 return _GP(play).talkanim_speed; in GetCharacterSpeechAnimationDelay()
396 _GP(play).usedinv = cdata; in RunCharacterInteraction()
429 return Character_IsCollidingWithChar(&_GP(game).chars[cchar1], &_GP(game).chars[cchar2]); in AreCharactersColliding()
435 return get_int_property(_GP(game).charProps[cha], _GP(play).charProps[cha], property); in GetCharacterProperty()
446 get_text_property(_GP(game).charProps[item], _GP(play).charProps[item], property, bufer); in GetCharacterPropertyText()
488 _GP(play).obsolete_inv_numorder = _G(charextra)[_GP(game).playercharacter].invorder_count; in update_invorder()
498 _GP(play).obsolete_inv_numorder = _G(charextra)[_GP(game).playercharacter].invorder_count; in add_inventory()
[all …]
H A Dwalkable_area.cpp42_GP(thisroom).WalkAreaMask->Blit(_G(walkareabackup), 0, 0, 0, 0, _GP(thisroom).WalkAreaMask->GetWi… in redo_walkable_areas()
75 yy = _GP(thisroom).WalkAreas[onarea].Top; in get_area_scaling()
79 if (_GP(thisroom).WalkAreas[onarea].Bottom != _GP(thisroom).WalkAreas[onarea].Top) { in get_area_scaling()
81 / (_GP(thisroom).WalkAreas[onarea].Bottom - _GP(thisroom).WalkAreas[onarea].Top); in get_area_scaling()
82 …zoom_level = ((_GP(thisroom).WalkAreas[onarea].ScalingNear - _GP(thisroom).WalkAreas[onarea].Scali… in get_area_scaling()
135 …_G(walkable_areas_temp)->Blit(_GP(thisroom).WalkAreaMask.get(), 0, 0, 0, 0, _GP(thisroom).WalkArea… in prepare_walkable_areas()
145 if (_GP(game).chars[ww].on != 1) continue; in prepare_walkable_areas()
151 if ((_GP(game).chars[ww].y < 0) || (_GP(game).chars[ww].x < 0)) continue; in prepare_walkable_areas()
180 (is_point_in_rect(_GP(game).chars[sourceChar].x, _GP(game).chars[sourceChar].y, in prepare_walkable_areas()
199 if (xx >= _GP(thisroom).Width) in get_walkable_area_at_location()
[all …]
H A Ddynamic_sprite.cpp115 delete _GP(spriteset)[sds->slot]; in DynamicSprite_Resize()
138 delete _GP(spriteset)[sds->slot]; in DynamicSprite_Flip()
149 if ((_GP(game).SpriteInfos[sds->slot].Width != _GP(game).SpriteInfos[sourceSprite].Width) || in DynamicSprite_CopyTransparencyMask()
150 (_GP(game).SpriteInfos[sds->slot].Height != _GP(game).SpriteInfos[sourceSprite].Height)) { in DynamicSprite_CopyTransparencyMask()
184 …newPic->Blit(_GP(spriteset)[sds->slot], 0, 0, x, y, _GP(game).SpriteInfos[sds->slot].Width, _GP(ga… in DynamicSprite_ChangeCanvasSize()
186 delete _GP(spriteset)[sds->slot]; in DynamicSprite_ChangeCanvasSize()
209 delete _GP(spriteset)[sds->slot]; in DynamicSprite_Crop()
408 frame = _GP(play).bg_frame; in DynamicSprite_CreateFromBackground()
415 width = _GP(play).room_width; in DynamicSprite_CreateFromBackground()
416 height = _GP(play).room_height; in DynamicSprite_CreateFromBackground()
[all …]
H A Dgame.cpp118 if (_GP(play).fast_forward) in Game_IsAudioPlaying()
184 return _GP(game).numdialog; in Game_GetDialogCount()
419 _GP(gamescript).reset(); in unload_game_file()
483 _GP(guis).clear(); in unload_game_file()
498 _GP(game).Free(); in unload_game_file()
534 return _GP(game).numgui; in Game_GetGUICount()
888 if ((_GP(play).screenshot_width < 16) || (_GP(play).screenshot_height < 16)) in create_savegame_screenshot()
1273 if (_GP(usetup).mouse_auto_lock && _GP(scsystem).windowed) in display_switch_in()
1796 ccAddExternalStaticObject("game", &_GP(play), &_GP(GameStaticManager)); in RegisterStaticObjects()
1798 ccAddExternalStaticObject("mouse", &_GP(scmouse), &_GP(GlobalStaticManager)); in RegisterStaticObjects()
[all …]
H A Dglobal_inventory_item.cpp42 if ((invi < 1) || (invi > _GP(game).numinvitems)) in set_inv_item_pic()
45 if (_GP(game).invinfo[invi].pic == piccy) in set_inv_item_pic()
48 if (_GP(game).invinfo[invi].pic == _GP(game).invinfo[invi].cursorPic) { in set_inv_item_pic()
54 _GP(game).invinfo[invi].pic = piccy; in set_inv_item_pic()
64 _GP(game).invinfo[invi].name[24] = 0; in SetInvItemName()
99 return _GP(game).invinfo[indx].pic; in GetInvGraphic()
124 _GP(play).check_interaction_only = 1; in IsInventoryInteractionAvailable()
128 int ciwas = _GP(play).check_interaction_only; in IsInventoryInteractionAvailable()
129 _GP(play).check_interaction_only = 0; in IsInventoryInteractionAvailable()
138 return get_int_property(_GP(game).invProps[item], _GP(play).invProps[item], property); in GetInvProperty()
[all …]
H A Dglobal_debug.cpp64 …_G(EngineVersion).LongString.GetCStr(), _GP(game).GetGameRes().Width, _GP(game).GetGameRes().Heigh… in GetRuntimeInfo()
69_GP(spriteset).GetCacheSize() / 1024, _GP(spriteset).GetMaxCacheSize() / 1024, _GP(spriteset).GetL… in GetRuntimeInfo()
70 if (_GP(play).separate_music_lib) in GetRuntimeInfo()
72 if (_GP(play).want_speech >= 1) in GetRuntimeInfo()
83 if (_GP(play).debug_mode == 0) return; in script_debug()
105 ….Left / _GP(thisroom).MaskResolution, camera.Top / _GP(thisroom).MaskResolution, camera.Right / _G… in script_debug()
118 if (_GP(game).roomCount == 0) { in script_debug()
126 …goToRoom = roomSelectorWindow(_G(displayed_room), _GP(game).roomCount, _GP(game).roomNumbers, _GP(… in script_debug()
136 if (_GP(game).chars[dataa].walking < 1) { in script_debug()
141 int mlsnum = _GP(game).chars[dataa].walking; in script_debug()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ags/shared/font/
H A Dfonts.cpp77 if (fontnum >= _GP(fonts).size() || !_GP(fonts)[fontnum].Renderer) in adjust_y_coordinate_for_text()
83 return _GP(fonts).size() > 0 && _GP(fonts)[0].Renderer != nullptr; in font_first_renderer_loaded()
100 if (fontNumber >= _GP(fonts).size() || !_GP(fonts)[fontNumber].Renderer2) in is_bitmap_font()
106 if (fontNumber >= _GP(fonts).size() || !_GP(fonts)[fontNumber].Renderer) in font_supports_extended_characters()
112 if (fontnum >= _GP(fonts).size() || !_GP(fonts)[fontnum].Renderer) in ensure_text_valid_for_font()
118 if (fontNumber >= _GP(fonts).size() || !_GP(fonts)[fontNumber].Renderer) in get_font_scaling_mul()
124 if (fontNumber >= _GP(fonts).size() || !_GP(fonts)[fontNumber].Renderer) in wgettextwidth()
336 _GP(fonts)[fontNumber].Renderer = &_GP(ttfRenderer); in wloadfont_size()
337 _GP(fonts)[fontNumber].Renderer2 = &_GP(ttfRenderer); in wloadfont_size()
339 _GP(fonts)[fontNumber].Renderer = &_GP(wfnRenderer); in wloadfont_size()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/media/audio/
H A Daudio.cpp258 _GP(play).crossfade_step++; in audio_update_polled_stuff()
304 _GP(play).new_music_queue[j] = _GP(play).new_music_queue[j + 1]; in audio_update_polled_stuff()
339 _GP(play).new_music_queue[_GP(play).new_music_queue_size].audioClipIndex = clip->id; in queue_audio_clip_to_play()
340 _GP(play).new_music_queue[_GP(play).new_music_queue_size].priority = priority; in queue_audio_clip_to_play()
341 _GP(play).new_music_queue[_GP(play).new_music_queue_size].repeat = (repeat != 0); in queue_audio_clip_to_play()
342 _GP(play).new_music_queue[_GP(play).new_music_queue_size].cachedClip = cachedClip; in queue_audio_clip_to_play()
392 if (!_GP(play).fast_forward && _GP(play).speech_has_voice) in play_audio_clip_on_channel()
406 _GP(play).new_music_queue[bb] = _GP(play).new_music_queue[bb + 1]; in remove_clips_of_type_from_queue()
753 _GP(play).music_queue[i] = _GP(play).music_queue[i + 1]; in play_next_queued()
812 if ((_GP(play).cur_music_number >= 0) && (_GP(play).fast_forward == 0)) { in update_audio_system_on_game_loop()
[all …]

12345678910>>...15