/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/device/ |
H A D | mouse_w32.cpp | 60 …(_G(mousex) < _G(boundx1) || _G(mousey) < _G(boundy1) || _G(mousex) > _G(boundx2) || _G(mousey) > … in mgetgraphpos() 61 _G(mousex) = CLIP(_G(mousex), _G(boundx1), _G(boundx2)); in mgetgraphpos() 62 _G(mousey) = CLIP(_G(mousey), _G(boundy1), _G(boundy2)); in mgetgraphpos() 87 …(_G(mousex) < _G(boundx1) || _G(mousey) < _G(boundy1) || _G(mousex) > _G(boundx2) || _G(mousey) > … in mgetgraphpos() 88 _G(mousex) = Math::Clamp(_G(mousex), _G(boundx1), _G(boundx2)); in mgetgraphpos() 89 _G(mousey) = Math::Clamp(_G(mousey), _G(boundy1), _G(boundy2)); in mgetgraphpos() 111 _G(mousex) -= _G(hotx); in domouse() 112 _G(mousey) -= _G(hoty); in domouse() 120 _G(mousex) += _G(hotx); in domouse() 121 _G(mousey) += _G(hoty); in domouse() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/main/ |
H A D | update.cpp | 312 if (_G(curLipLinePhoneme) >= _G(splipsync)[_G(curLipLine)].numPhonemes) { in update_sierra_speech() 321 _G(facetalkframe) = _G(splipsync)[_G(curLipLine)].frame[_G(curLipLinePhoneme)]; in update_sierra_speech() 323 if (_G(facetalkframe) >= _G(views)[_G(facetalkview)].loops[_G(facetalkloop)].numFrames) in update_sierra_speech() 348 _G(facetalkwait) = update_lip_sync(_G(facetalkview), _G(facetalkloop), &_G(facetalkframe)); in update_sierra_speech() 355 if ((_G(facetalkframe) >= _G(views)[_G(facetalkview)].loops[_G(facetalkloop)].numFrames) || in update_sierra_speech() 358 if ((_G(facetalkframe) >= _G(views)[_G(facetalkview)].loops[_G(facetalkloop)].numFrames) && in update_sierra_speech() 369 …_G(facetalkwait) = _G(views)[_G(facetalkview)].loops[_G(facetalkloop)].frames[_G(facetalkframe)].s… in update_sierra_speech() 378 CheckViewFrame(_G(facetalkview), _G(facetalkloop), _G(facetalkframe)); in update_sierra_speech() 382 int thisPic = _G(views)[_G(facetalkview)].loops[_G(facetalkloop)].frames[_G(facetalkframe)].pic; in update_sierra_speech() 402 …const ViewFrame *face_vf = &_G(views)[_G(facetalkview)].loops[_G(facetalkloop)].frames[_G(facetalk… in update_sierra_speech() [all …]
|
H A D | game_run.cpp | 94 if ((_G(in_enters_screen) != 0) & (_G(displayed_room) == _G(starting_room))) in game_loop_check_problems_at_start() 191 …if ((_G(ifacepopped) >= 0) && (_G(mousey) >= _GP(guis)[_G(ifacepopped)].Y + _GP(guis)[_G(ifacepopp… in check_mouse_controls() 198 gui_on_mouse_up(_G(wasongui), _G(wasbutdown)); in check_mouse_controls() 326 _G(display_console) = !_G(display_console); in run_service_key_controls() 342 …_G(displayed_room), (_G(noWalkBehindsAtAll) ? "(has no walk-behinds)" : ""), _G(playerchar)->x, _G… in run_service_key_controls() 343 _G(playerchar)->view + 1, _G(playerchar)->loop, _G(playerchar)->frame, in run_service_key_controls() 351 ff, _G(objs)[ff].x, _G(objs)[ff].y, in run_service_key_controls() 632 _G(new_room_was) = _G(in_new_room); in game_loop_update_events() 637 if (!_G(abort_engine) && (_G(new_room_was) > 0) && (_G(in_new_room) == 0)) { in game_loop_update_events() 683 _G(lastcounter) = _G(loopcounter); in game_loop_update_fps() [all …]
|
H A D | quit.cpp | 94 _G(our_eip) = 9016; in quit_shutdown_platform() 107 _G(our_eip) = 9917; in quit_shutdown_audio() 192 strncpy(_G(quit_message), quitmsg, sizeof(_G(quit_message)) - 1); in quit() 193 _G(quit_message)[sizeof(_G(quit_message)) - 1] = '\0'; in quit() 213 _G(our_eip) = 9900; in quit_free() 217 _G(our_eip) = 9020; in quit_free() 223 _G(our_eip) = 9019; in quit_free() 227 _G(our_eip) = 9901; in quit_free() 230 _G(our_eip) = 9902; in quit_free() 234 _G(our_eip) = 9907; in quit_free() [all …]
|
H A D | main.cpp | 56 _G(our_eip) = -999; in main_pre_init() 94 _G(global_argv) = argv; in main_init() 95 _G(global_argc) = argc; in main_init() 103 …_G(EngineVersion).ShortString.GetCStr(), _G(EngineVersion).LongString.GetCStr(), _G(EngineVersion)… in get_engine_string() 212 _G(justRunSetup) = true; in main_process_cmdline() 223 _G(force_window) = 1; in main_process_cmdline() 256 _G(force_window) = 1; in main_process_cmdline() 258 _G(force_window) = 2; in main_process_cmdline() 297 _G(cmdGameDataPath) = _G(psp_game_file_name); in main_process_cmdline() 301 _G(justTellInfo) = true; in main_process_cmdline() [all …]
|
H A D | engine.cpp | 87 _G(our_eip) = -199; in engine_init_backend() 108 _G(want_exit) = 1; in winclosehook() 116 _G(our_eip) = -198; in engine_setup_window() 120 _G(our_eip) = -197; in engine_setup_window() 405 _G(our_eip) = -17; in engine_load_game_data() 573 _G(our_eip) = -7; in engine_init_game_settings() 613 _G(our_eip) = -6; in engine_init_game_settings() 656 _G(our_eip) = -5; in engine_init_game_settings() 823 _G(our_eip) = -4; in engine_init_game_settings() 1109 if (!_G(justTellInfo) && _G(justRunSetup)) { in initialize_engine() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/gen/ |
H A D | ctype_.c | 123 _G|_R|_P, _G|_R|_P, _G|_R|_P, _G|_R|_P, 124 _G|_R|_P, _G|_R|_P, _G|_R|_P, _G|_R|_P, 125 _G|_R|_P, _G|_R|_P, _G|_R|_P, _G|_R|_P, 126 _D|_G|_R|_X, _D|_G|_R|_X, _D|_G|_R|_X, _D|_G|_R|_X, 127 _D|_G|_R|_X, _D|_G|_R|_X, _D|_G|_R|_X, _D|_G|_R|_X, 128 _D|_G|_R|_X, _D|_G|_R|_X, _G|_R|_P, _G|_R|_P, 129 _G|_R|_P, _G|_R|_P, _G|_R|_P, _G|_R|_P, 132 _A|_G|_R|_U, _A|_G|_R|_U, _A|_G|_R|_U, _A|_G|_R|_U, 136 _A|_G|_R|_U, _A|_G|_R|_U, _A|_G|_R|_U, _G|_R|_P, 137 _G|_R|_P, _G|_R|_P, _G|_R|_P, _G|_R|_P, [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/ac/ |
H A D | draw.cpp | 368 _G(gfxDriver)->DestroyDDB(_G(blankImage)); in destroy_blank_image() 1295 …(_G(views)[_G(objs)[aa].view].loops[_G(objs)[aa].loop].frames[_G(objs)[aa].frame].pic == _G(objs)[… in construct_object_gfx() 1382 _G(objcache)[aa].sppic = _G(objs)[aa].num; in construct_object_gfx() 1413 _G(objcache)[aa].xwas = _G(objs)[aa].x; in prepare_objects_for_drawing() 1414 _G(objcache)[aa].ywas = _G(objs)[aa].y; in prepare_objects_for_drawing() 1937 _G(gfxDriver)->UpdateDDBFromBitmap(_G(guibgbmp)[aa], _G(guibg)[aa], isAlpha); in draw_gui_and_overlays() 2134 (_G(mousex) == _G(lastmx)) && (_G(mousey) == _G(lastmy))); in construct_game_screen_overlay() 2155 _G(lastmx) = _G(mousex); in construct_game_screen_overlay() 2156 _G(lastmy) = _G(mousey); in construct_game_screen_overlay() 2163 _G(gfxDriver)->DrawSprite(_G(mousex) - _G(hotx), _G(mousey) - _G(hoty), in construct_game_screen_overlay() [all …]
|
H A D | global_object.cpp | 71 int xxx = _G(objs)[aa].x, yyy = _G(objs)[aa].y; in GetObjectIDAtRoom() 76 …isflipped = _G(views)[_G(objs)[aa].view].loops[_G(objs)[aa].loop].frames[_G(objs)[aa].frame].flags… in GetObjectIDAtRoom() 144 if (_G(objs)[obn].loop >= _G(views)[vii].numLoops) in SetObjectView() 187 CheckViewFrame(viw, _G(objs)[obn].loop, _G(objs)[obn].frame); in SetObjectFrame() 227 if (loopn < 0 || loopn >= _G(views)[_G(objs)[obn].view].numLoops) in AnimateObjectImpl() 235 if (_G(views)[_G(objs)[obn].view].loops[loopn].numFrames < 1) in AnimateObjectImpl() 257 …_G(objs)[obn].wait = spdd + _G(views)[_G(objs)[obn].view].loops[loopn].frames[_G(objs)[obn].frame]… in AnimateObjectImpl() 258 int pic = _G(views)[_G(objs)[obn].view].loops[loopn].frames[_G(objs)[obn].frame].pic; in AnimateObjectImpl() 262 CheckViewFrame(_G(objs)[obn].view, loopn, _G(objs)[obn].frame); in AnimateObjectImpl() 297 _G(objs)[obn].on = 2; in MergeObject() [all …]
|
H A D | event.cpp | 63 if (_G(abort_engine)) in run_claimable_event() 114 _G(event)[_G(numevents)].type = evtyp; in setevent() 115 _G(event)[_G(numevents)].data1 = ev1; in setevent() 116 _G(event)[_G(numevents)].data2 = ev2; in setevent() 117 _G(event)[_G(numevents)].data3 = ev3; in setevent() 118 _G(event)[_G(numevents)].player = _GP(game).playercharacter; in setevent() 119 _G(numevents)++; in setevent() 136 _G(ccError) = 0; in process_event() 183 if (_G(abort_engine)) in process_event() 372 processallevents(_G(numevents), &_G(event)[0]); in update_events() [all …]
|
H A D | walk_behind.cpp | 45 (_G(walkBehindRight)[ee] - _G(walkBehindLeft)[ee]) + 1, in update_walk_behind_images() 46 (_G(walkBehindBottom)[ee] - _G(walkBehindTop)[ee]) + 1, in update_walk_behind_images() 48 int yy, startX = _G(walkBehindLeft)[ee], startY = _G(walkBehindTop)[ee]; in update_walk_behind_images() 61 _G(gfxDriver)->DestroyDDB(_G(walkBehindBitmap)[ee]); in update_walk_behind_images() 63 _G(walkBehindBitmap)[ee] = _G(gfxDriver)->CreateDDBFromBitmap(wbbmp, false); in update_walk_behind_images() 76 free(_G(walkBehindEndY)); in recache_walk_behinds() 93 _G(gfxDriver)->DestroyDDB(_G(walkBehindBitmap)[ee]); in recache_walk_behinds() 113 if (ee < _G(walkBehindLeft)[tmm]) _G(walkBehindLeft)[tmm] = ee; in recache_walk_behinds() 114 if (rr < _G(walkBehindTop)[tmm]) _G(walkBehindTop)[tmm] = rr; in recache_walk_behinds() 115 if (ee > _G(walkBehindRight)[tmm]) _G(walkBehindRight)[tmm] = ee; in recache_walk_behinds() [all …]
|
H A D | route_finder_impl.cpp | 70 _G(lastcx) = x1; in can_see_from() 71 _G(lastcy) = y1; in can_see_from() 78 return !_GP(nav).TraceLine(x1, y1, x2, y2, _G(lastcx), _G(lastcy)); in can_see_from() 106 _G(navpoints)[_G(num_navpoints)++] = MAKE_INTCOORD(x, y); in find_route_jps() 166 if (_G(move_speed_x) == _G(move_speed_y)) { in calculate_move_stage() 173 if (_G(move_speed_x) > _G(move_speed_y)) { in calculate_move_stage() 175 useMoveSpeed = _G(move_speed_y) + fixmul(xproportion, _G(move_speed_x) - _G(move_speed_y)); in calculate_move_stage() 178 …useMoveSpeed = _G(move_speed_x) + fixmul(itofix(1) - xproportion, _G(move_speed_y) - _G(move_speed… in calculate_move_stage() 225 _G(navpoints)[_G(num_navpoints)++] = _G(navpoints)[0]; in find_route() 234 _G(mls)[mlist].numstage = _G(num_navpoints); in find_route() [all …]
|
H A D | room.cpp | 222 memcpy(_G(croom)->tsdata, &_G(roominst)->globaldata[0], _G(croom)->tsdatasize); in save_room_data_segment() 252 _G(gfxDriver)->DestroyDDB(_G(roomBackgroundBmp)); in unload_old_room() 319 _G(gfxDriver)->DestroyDDB(_G(actspsbmp)[ff]); in unload_old_room() 326 _G(gfxDriver)->DestroyDDB(_G(actspswbbmp)[ff]); in unload_old_room() 641 _G(objs) = &_G(croom)->obj[0]; in load_new_room() 730 memcpy(&_G(roominst)->globaldata[0], _G(croom)->tsdata, _G(croom)->tsdatasize); in load_new_room() 747 _G(new_room_x) = _G(new_room_y) = SCR_NO_VALUE; in load_new_room() 960 _G(gfxDriver)->DestroyDDB(_G(guibgbmp)[i]); in new_room() 983 _G(starting_room) = _G(displayed_room); in first_room_initialization() 985 _G(mouse_z_was) = _G(sys_mouse_z); in first_room_initialization() [all …]
|
H A D | sys_events.cpp | 124 int result = _G(mouse_button_state) | _G(mouse_accum_button_state); in mouse_button_poll() 155 _G(sys_mouse_z)++; in on_mouse_wheel() 157 _G(sys_mouse_z)--; in on_mouse_wheel() 174 _G(butwas) = butis; in mgetbutton() 207 x = _G(mouse_accum_relx); in ags_mouse_get_relxy() 208 y = _G(mouse_accum_rely); in ags_mouse_get_relxy() 209 _G(mouse_accum_relx) = 0; in ags_mouse_get_relxy() 210 _G(mouse_accum_rely) = 0; in ags_mouse_get_relxy() 225 if (_G(sys_mouse_z) == _G(mouse_z_was)) { in ags_check_mouse_wheel() 230 if (_G(sys_mouse_z) > _G(mouse_z_was)) in ags_check_mouse_wheel() [all …]
|
H A D | button.cpp | 68 _G(animbuts)[_G(numAnimButs)].ongui = guin; in Button_Animate() 69 _G(animbuts)[_G(numAnimButs)].onguibut = objn; in Button_Animate() 71 _G(animbuts)[_G(numAnimButs)].view = view; in Button_Animate() 72 _G(animbuts)[_G(numAnimButs)].loop = loop; in Button_Animate() 73 _G(animbuts)[_G(numAnimButs)].speed = speed; in Button_Animate() 74 _G(animbuts)[_G(numAnimButs)].repeat = repeat; in Button_Animate() 75 _G(animbuts)[_G(numAnimButs)].frame = -1; in Button_Animate() 76 _G(animbuts)[_G(numAnimButs)].wait = 0; in Button_Animate() 223 CheckViewFrame(_G(animbuts)[bu].view, _G(animbuts)[bu].loop, _G(animbuts)[bu].frame); in UpdateAnimatingButton() 232 …_G(animbuts)[bu].wait = _G(animbuts)[bu].speed + tview->loops[_G(animbuts)[bu].loop].frames[_G(ani… in UpdateAnimatingButton() [all …]
|
H A D | timer.cpp | 38 if (_G(framerate_maxed)) { in GetFrameDuration() 41 return _G(tick_duration); in GetFrameDuration() 46 _G(framerate_maxed) = new_fps >= 1000; in setTimerFps() 53 return _G(framerate_maxed); in isTimerFpsMaxed() 62 _G(next_frame_timestamp) = now; in WaitForNextFrame() 64 while (_G(game_update_suspend)) { in WaitForNextFrame() 66 _G(platform)->YieldCPU(); in WaitForNextFrame() 73 _G(next_frame_timestamp) = now; in WaitForNextFrame() 76 if (_G(next_frame_timestamp) > now) { in WaitForNextFrame() 84 while (_G(game_update_suspend)) { in WaitForNextFrame() [all …]
|
H A D | route_finder_impl_legacy.cpp | 83 _G(lastcx) = x; in line_callback() 84 _G(lastcy) = y; in line_callback() 94 _G(lastcx) = x1; in can_see_from() 95 _G(lastcy) = y1; in can_see_from() 109 lastcx_ = _G(lastcx); in get_lastcpos() 110 lastcy_ = _G(lastcy); in get_lastcpos() 149 _G(wallscreen) = wss; in is_route_possible() 691 if (_G(move_speed_x) == _G(move_speed_y)) { in calculate_move_stage() 698 if (_G(move_speed_x) > _G(move_speed_y)) { in calculate_move_stage() 700 useMoveSpeed = _G(move_speed_y) + fixmul(xproportion, _G(move_speed_x) - _G(move_speed_y)); in calculate_move_stage() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/gui/ |
H A D | gui_dialog.cpp | 62 …_G(windowBuffer) = recycle_bitmap(_G(windowBuffer), _G(windowBuffer)->GetColorDepth(), _G(windowPo… in prepare_gui_screen() 67 _G(dialogDDB) = recycle_ddb_bitmap(_G(dialogDDB), _G(windowBuffer), false, opaque); in prepare_gui_screen() 77 _G(gfxDriver)->DestroyDDB(_G(dialogDDB)); in clear_gui_screen() 84 _G(gfxDriver)->UpdateDDBFromBitmap(_G(dialogDDB), _G(windowBuffer), false); in refresh_gui_screen() 85 render_graphics(_G(dialogDDB), _G(windowPosX), _G(windowPosY)); in refresh_gui_screen() 120 _G(lpTemp) = &_G(bufTemp)[0]; in loadgamedialog() 250 _G(lpTemp) = &_G(bufTemp)[0]; in savegamedialog() 251 _G(lpTemp2) = &_G(buffer2)[0]; in savegamedialog() 288 for (_G(numsaves) = 0; _G(numsaves) < (int)saveList.size(); ++_G(numsaves)) { in preparesavegamelist() 291 _G(filenumbers)[_G(numsaves)] = saveList[_G(numsaves)].getSaveSlot(); in preparesavegamelist() [all …]
|
H A D | csci_dialog.cpp | 98 _G(oswi)[drawit].oldtop = _G(topwindowhandle); in CSCIDrawWindow() 100 _G(oswi)[drawit].handle = _G(topwindowhandle); in CSCIDrawWindow() 101 _G(win_x) = xx; in CSCIDrawWindow() 102 _G(win_y) = yy; in CSCIDrawWindow() 111 _G(topwindowhandle) = _G(oswi)[handl].oldtop; in CSCIEraseWindow() 127 prepare_gui_screen(_G(win_x), _G(win_y), _G(win_width), _G(win_height), true); in CSCIWaitMessage() 137 _G(smcode) = 0; in CSCIWaitMessage() 211 _G(vobjs)[usec]->wlevel = _G(topwindowhandle); in CSCICreateControl() 255 const int mousex = _G(mousex) - _G(win_x); in checkcontrols() 256 const int mousey = _G(mousey) - _G(win_y); in checkcontrols() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/script/ |
H A D | script.cpp | 216 _G(gameinstFork) = _G(gameinst)->Fork(); in create_global_script() 319 _G(scripts)[_G(num_scripts)].init(); in PrepareTextScript() 320 _G(scripts)[_G(num_scripts)].inst = sci; in PrepareTextScript() 324 _G(scripts)[_G(num_scripts)].inst = sci->Fork(); in PrepareTextScript() 325 if (_G(scripts)[_G(num_scripts)].inst == nullptr) in PrepareTextScript() 327 _G(scripts)[_G(num_scripts)].forked = 1; in PrepareTextScript() 329 _G(curscript) = &_G(scripts)[_G(num_scripts)]; in PrepareTextScript() 483 if (_G(ccError)) quit(_G(ccErrorString)); in post_script_cleanup() 485 if (_G(scripts)[_G(num_scripts) - 1].forked) in post_script_cleanup() 486 delete _G(scripts)[_G(num_scripts) - 1].inst; in post_script_cleanup() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/engine/game/ |
H A D | game_init.cpp | 135 _G(scrDialog)[i].id = i; in InitAndRegisterDialogs() 158 _G(scrGui)[i].id = -1; in InitAndRegisterGUI() 172 _G(scrGui)[i].id = i; in InitAndRegisterGUI() 182 _G(scrInv)[i].id = i; in InitAndRegisterInvItems() 183 _G(scrInv)[i].reserved = 0; in InitAndRegisterInvItems() 194 _G(scrHotspot)[i].id = i; in InitAndRegisterHotspots() 210 _G(scrRegion)[i].id = i; in InitAndRegisterRegions() 283 speechsync->ReadArrayOfInt16(_G(splipsync)[ee].frame, _G(splipsync)[ee].numPhonemes); in LoadLipsyncData() 338 _G(actsps) = (Bitmap **)calloc(_G(actSpsCount), sizeof(Bitmap *)); in InitGameState() 340 _G(actspswb) = (Bitmap **)calloc(_G(actSpsCount), sizeof(Bitmap *)); in InitGameState() [all …]
|
/dports/devel/lua-stdlib-normalize/normalize-2.0.3/lib/std/normalize/ |
H A D | init.lua | 52 _G = _G, 173 return _G 506 arg = _G.arg, 532 error = _G.error, 614 next = _G.next, 640 pcall = _G.pcall, 641 print = _G.print, 685 type = _G.type, 843 searchers = _G.package.searchers or _G.package.loaders, 920 F._G = G [all …]
|
/dports/games/hedgewars-server/hedgewars-src-1.0.0/share/hedgewars/Data/Scripts/ |
H A D | SimpleMission.lua | 243 _G.sm = {} 248 _G.sm.gameTurns = 0 250 _G.sm.goalGears = {} 252 _G.sm.params = params 254 _G.sm.gameEnded = false 256 _G.sm.playerClan = 0 511 _G.sm.lose(goalText) 513 _G.sm.win() 517 _G.sm.win = function() 526 _G.sm.makeStats(_G.sm.playerClan) [all …]
|
/dports/games/hedgewars/hedgewars-src-1.0.0/share/hedgewars/Data/Scripts/ |
H A D | SimpleMission.lua | 243 _G.sm = {} 248 _G.sm.gameTurns = 0 250 _G.sm.goalGears = {} 252 _G.sm.params = params 254 _G.sm.gameEnded = false 256 _G.sm.playerClan = 0 511 _G.sm.lose(goalText) 513 _G.sm.win() 517 _G.sm.win = function() 526 _G.sm.makeStats(_G.sm.playerClan) [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ags/shared/util/ |
H A D | lzw.cpp | 71 _G(pos) = j; in insert() 90 dad[i] = p - _G(node); in insert() 135 _G(node) = (int *)(_G(lzbuffer) + N + F); in lzwcompress() 157 _G(lzbuffer)[i + F] = _G(lzbuffer)[i + F - N] = ch; in lzwcompress() 196 free(_G(lzbuffer)); in lzwcompress() 203 _G(putbytes)++; in myputc() 204 if (_G(putbytes) > _G(maxsize)) in myputc() 208 _G(outbytes)++; in myputc() 220 _G(putbytes) = 0; in lzwexpand() 251 if ((_G(putbytes) >= _G(maxsize)) && (_G(maxsize) > 0)) in lzwexpand() [all …]
|