Home
last modified time | relevance | path

Searched refs:g_context (Results 1 – 25 of 178) sorted by relevance

12345678

/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/controllers/
H A Dgame_controller.cpp87 g_context->_col = 0; in init()
89 g_context->_moonPhase = 0; in init()
91 g_context->_windCounter = 0; in init()
92 g_context->_windLock = false; in init()
94 g_context->_horseSpeed = 0; in init()
95 g_context->_opacity = 1; in init()
164 if (!g_context->_location) in exitToParentMap()
173 if (g_context->_location->_prev->_map != g_context->_location->_map) { in exitToParentMap()
218g_context->_party->applyEffect(g_context->_location->_map->tileTypeAt(g_context->_location->_coord… in finishTurn()
225 attacker = g_context->_location->_map->moveObjects(g_context->_location->_coords); in finishTurn()
[all …]
H A Dinn_controller.cpp52g_context->_party->setTransport(g_context->_location->_map->_tileSet->getByName("corpse")->getId()… in begin()
62g_context->_party->setTransport(g_context->_location->_map->_tileSet->getByName("avatar")->getId()… in begin()
70 if (g_context->_party->member(0)->isDead()) { in begin()
89 for (int i = 0; i < g_context->_party->size(); i++) { in heal()
90 PartyMember *m = g_context->_party->member(i); in heal()
105 if ((g_context->_location->_map->_id == 11) && (xu4_random(4) == 0)) { in maybeMeetIsaac()
106 City *city = dynamic_cast<City *>(g_context->_location->_map); in maybeMeetIsaac()
112 Coords coords(27, xu4_random(3) + 10, g_context->_location->_coords.z); in maybeMeetIsaac()
116 i != g_context->_location->_map->_objects.end(); in maybeMeetIsaac()
152 …creature = g_context->_location->_map->addCreature(creatureMgr->getById(RAT_ID), g_context->_locat… in maybeAmbush()
[all …]
H A Dcombat_controller.cpp92 g_context->_party->addObserver(this); in CombatController()
99 g_context->_party->addObserver(this); in CombatController()
107 g_context->_party->addObserver(this); in CombatController()
112 g_context->_party->deleteObserver(this); in ~CombatController()
135 g_context->_horseSpeed = 0; in setActive()
317 if (g_context->_party->isDead()) { in end()
380 usePortalAt(g_context->_location, g_context->_location->_coords, action); in end()
440 …Map *map = g_context->_location->_prev ? g_context->_location->_prev->_map : g_context->_location-… in initialNumberOfCreatures()
776 g_context->_party->endTurn(); in finishTurn()
779 g_context->_aura->passTurn(); in finishTurn()
[all …]
H A Dcamp_controller.cpp36 if (g_context->_location->_context & CTX_DUNGEON) in CampController()
52 for (int i = 0; i < g_context->_party->size(); i++) in begin()
53 g_context->_party->member(i)->putToSleep(); in begin()
74 …setCreature(g_context->_location->_prev->_map->addCreature(m, g_context->_location->_prev->_coords… in begin()
84 for (int i = 0; i < g_context->_party->size(); i++) in begin()
85 g_context->_party->member(i)->wakeUp(); in begin()
105 for (int i = 0; i < g_context->_party->size(); i++) in end()
106 g_context->_party->member(i)->wakeUp(); in end()
113 for (int i = 0; i < g_context->_party->size(); i++) { in heal()
114 PartyMember *m = g_context->_party->member(i); in heal()
H A Dkey_handler_controller.cpp54 if (g_context && g_context->_location) in defaultHandler()
55g_context->_location->_coords.x, g_context->_location->_coords.y, g_context->_location->_coords.z,… in defaultHandler()
/dports/games/scummvm/scummvm-2.5.1/backends/graphics/opengl/
H A Dcontext.cpp68 Context g_context; variable
79 g_context.type = type; in setContextType()
84 g_context.reset(); in initializeGLContext()
124 if (g_context.type == kContextGL) { in initializeGLContext()
130 if (sscanf(verString, glVersionFormat, &g_context.majorVersion, &g_context.minorVersion) != 2) { in initializeGLContext()
131 g_context.majorVersion = g_context.minorVersion = 0; in initializeGLContext()
148 g_context.NPOTSupported = true; in initializeGLContext()
170 g_context.NPOTSupported = true; in initializeGLContext()
173 g_context.shadersSupported = true; in initializeGLContext()
185 if (g_context.type != kContextGL || g_context.isGLVersionOrHigher(1, 2)) { in initializeGLContext()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/core/
H A Ddebugger.cpp180 if (g_context && g_context->_location) { in handleCommand()
203 if (g_context) in handleCommand()
216 assert(g_context); in handleCommand()
248 (g_context->_transportContext == TRANSPORT_HORSE) && g_context->_horseSpeed) { in cmdMove()
289 Object *obj = g_context->_location->_map->objectAt(g_context->_location->_coords); in cmdBoard()
501 g_context->_opacity = 0; in cmdClimb()
523 g_context->_opacity = 1; in cmdDescend()
551 …Object *obj = g_context->_location->_map->addObject(g_context->_party->getTransport(), g_context->… in cmdExit()
678 Object *obj = g_context->_location->_map->objectAt(g_context->_location->_coords); in cmdInteract()
1618 g_context->_opacity = !g_context->_opacity; in cmdOpacity()
[all …]
H A Ddebugger_actions.cpp101 g_context->_location->_map->removeObject(obj); in destroyAt()
158 g_context->_party->applyEffect(trapType); in getChestTrapHandler()
231 …ReagentsMenuController getReagentsController(g_context->_stats->getReagentsMenu(), &ingredients, g… in mixReagentsForSpellU5()
235 g_context->_stats->getMainArea()->disableCursor(); in mixReagentsForSpellU5()
240 …int howmany = ReadIntController::get(2, TEXT_AREA_X + g_context->_col, TEXT_AREA_Y + g_context->_l… in mixReagentsForSpellU5()
322 if (!isCity(g_context->_location->_map)) { in talkAt()
346 g_context->_party->member(0)->setStatus(STAT_GOOD); in talkAt()
347 g_context->_party->member(0)->heal(HT_FULLHEAL); in talkAt()
353 conv._script->addProvider("context", g_context); in talkAt()
361 if (g_context->_col != 0) in talkAt()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/game/
H A Dgame.cpp95 g_context->_location->_viewMode = newMode; in gameSetViewMode()
99 switch (g_context->_location->_viewMode) { in gameUpdateScreen()
178 …return ReadStringController::get(maxlen, TEXT_AREA_X + g_context->_col, TEXT_AREA_Y + g_context->_… in gameGetInput()
362g_context->_location->_map->tileTypeAt(g_context->_location->_coords, WITHOUT_OBJECTS)->isSailable… in gameCheckHullIntegrity()
364 …!g_context->_location->_map->getValidMoves(g_context->_location->_coords, g_context->_party->getTr… in gameCheckHullIntegrity()
425 …ground = g_context->_location->_map->tileTypeAt(g_context->_location->_coords, WITH_GROUND_OBJECTS… in gameCreatureAttack()
427 ground = g_context->_location->_map->tileTypeAt(g_context->_location->_coords, WITHOUT_OBJECTS); in gameCreatureAttack()
428 if ((under = g_context->_location->_map->objectAt(g_context->_location->_coords)) && in gameCreatureAttack()
563 g_context->_party->damageShip(damage); in gameDamageShip()
685 Map *map = g_context->_location->_map; in gameDestroyAllCreatures()
[all …]
H A Dspell.cpp135 g_context->_party->adjustReagent(reagent, 1); in removeReagent()
313 if (*g_context->_aura == Aura::NEGATE) { in spellCast()
445 g_context->_location->_coords = coords; in spellBlink()
592 g_context->_location->_coords = *moongate; in spellGate()
611 g_context->_aura->set(Aura::JINX, 10); in spellJinx()
621 g_context->_party->lightTorch(100, false); in spellLight()
631 g_context->_aura->set(Aura::NEGATE, 10); in spellNegate()
652 g_context->_aura->set(Aura::QUICKNESS, 10); in spellQuick()
737 g_context->_windDirection = fromdir; in spellWinds()
764 g_context->_location->_coords = coords; in spellYup()
[all …]
H A Ddeath.cpp103 …g_screen->screenMessage(DEATH_MSGS[g_death->timerMsg]._text, g_context->_party->member(0)->getName… in deathTimer()
117 while (!g_context->_location->_map->isWorldMap() && g_context->_location->_prev != nullptr) { in revive()
127 g_context->_location->_coords = g_context->_location->_map->_portals[0]->_coords; in revive()
131 g_context->_location->_coords.x = REVIVE_CASTLE_X; in revive()
132 g_context->_location->_coords.y = REVIVE_CASTLE_Y; in revive()
133 g_context->_location->_coords.z = 0; in revive()
135 g_context->_aura->set(); in revive()
136 g_context->_horseSpeed = 0; in revive()
137 g_context->_lastCommandTime = g_system->getMillis(); in revive()
140 g_context->_party->reviveParty(); in revive()
[all …]
H A Ditem.cpp197 g_context->_party->member(0)->awardXp(100); in putRuneInInventory()
198 g_context->_party->adjustKarma(KA_FOUND_ITEM); in putRuneInInventory()
244 g_context->_party->member(0)->awardXp(200); in putStoneInInventory()
245 g_context->_party->adjustKarma(KA_FOUND_ITEM); in putStoneInInventory()
290 g_context->_party->member(0)->awardXp(400); in putItemInInventory()
291 g_context->_party->adjustKarma(KA_FOUND_ITEM); in putItemInInventory()
370 g_context->_aura->set(Aura::HORN, 10); in useHorn()
376 g_context->_party->setShipHull(99); in useWheel()
394 if (g_context->_location->_coords.x == 0xe9 && g_context->_location->_coords.y == 0xe9) { in useSkull()
525 if (g_context->_location->_coords.z < 7) { in useStone()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/graphics/opengl/
H A Dcontext.cpp63 Context g_context; variable
74 g_context.type = type; in setContextType()
79 g_context.reset(); in initializeGLContext()
99 if (g_context.type == kContextGL) { \ in initializeGLContext()
128 g_context.NPOTSupported = true; in initializeGLContext()
138 g_context.multitextureSupported = true; in initializeGLContext()
144 if (g_context.type == kContextGLES2) { in initializeGLContext()
146 g_context.NPOTSupported = true; in initializeGLContext()
149 g_context.shadersSupported = true; in initializeGLContext()
152 g_context.multitextureSupported = true; in initializeGLContext()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/map/
H A Dmovement.cpp60 g_context->_party->setDirection(event._dir); in moveAvatar()
69 g_context->_party->setDirection(event._dir); in moveAvatar()
73 newCoords = g_context->_location->_coords; in moveAvatar()
83 …int movementMask = g_context->_location->_map->getValidMoves(g_context->_location->_coords, g_cont… in moveAvatar()
112 g_context->_location->_coords = newCoords; in moveAvatar()
144 newCoords = g_context->_location->_coords; in moveAvatarInDungeon()
156 …int movementMask = g_context->_location->_map->getValidMoves(g_context->_location->_coords, g_cont… in moveAvatarInDungeon()
170 g_context->_location->_coords = newCoords; in moveAvatarInDungeon()
338g_context->_party->member(member)->getHp() == g_context->_party->member(member)->getMaxHp()) in movePartyMember()
389g_context->_location->_map->_annotations->remove(g_context->_location->_map->_annotations->allAt(c… in movePartyMember()
[all …]
H A Ddungeon.cpp176 return tokenAt(g_context->_location->_coords); in currentToken()
180 return subTokenAt(g_context->_location->_coords); in currentSubToken()
252 if (g_context->_party->member(player)->heal(HT_FULLHEAL)) in dungeonDrinkFountain()
266 if (g_context->_party->member(player)->heal(HT_CURE)) in dungeonDrinkFountain()
300 …MapTile replacementTile(g_context->_location->getReplacementTile(g_context->_location->_coords, or… in dungeonTouchOrb()
302 switch (g_context->_location->_map->_id) { in dungeonTouchOrb()
346 g_context->_party->member(player)->applyDamage(damage); in dungeonTouchOrb()
348 g_context->_location->_map->_annotations->add(g_context->_location->_coords, replacementTile); in dungeonTouchOrb()
358 g_context->_party->quenchTorch(); in dungeonHandleTrap()
364 g_context->_party->applyEffect(EFFECT_LAVA); in dungeonHandleTrap()
[all …]
H A Dshrine.cpp70 if (!g_context->_party->canEnterShrine(shrine->getVirtue())) { in shrineCanEnter()
132 …virtue = ReadStringController::get(32, TEXT_AREA_X + g_context->_col, TEXT_AREA_Y + g_context->_li… in enter()
187 g_context->_location->_map->move(obj, DIR_NORTH); in enhancedSequence()
190 g_context->_location->_map->move(obj, DIR_NORTH); in enhancedSequence()
193 g_context->_location->_map->move(obj, DIR_NORTH); in enhancedSequence()
196 g_context->_location->_map->move(obj, DIR_NORTH); in enhancedSequence()
238 …mantra = ReadStringController::get(4, TEXT_AREA_X + g_context->_col, TEXT_AREA_Y + g_context->_lin… in askMantra()
245 g_context->_party->adjustKarma(KA_BAD_MANTRA); in askMantra()
250 g_context->_party->adjustKarma(KA_MEDITATION); in askMantra()
254 g_context->_party->adjustKarma(KA_MEDITATION); in askMantra()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/filesys/
H A Dsavegame.cpp40 assert(g_context && g_context->_location); in save()
59 if (g_context->_location && g_context->_location->_prev) { in save()
75 assert(g_context); in load()
83 if (g_context->_party) { in load()
85 delete g_context->_party; in load()
91 while (g_context->_location) in load()
97 assert(g_context->_location && g_context->_location->_map); in load()
118 if (MAP_IS_OOB(g_context->_location->_map, g_context->_location->_coords)) in load()
119 g_context->_location->_coords.putInBounds(g_context->_location->_map); in load()
139 g_context->_aura->addObserver(g_context->_stats); in load()
[all …]
/dports/net/libcoap/libcoap-4.3.0/src/
H A Dcoap_gnutls.c248 if (!g_context || !setup_data) in coap_dtls_context_set_pki()
295 if (!g_context) { in coap_dtls_context_set_pki_root_cas()
308 if (g_context->root_ca_file) { in coap_dtls_context_set_pki_root_cas()
315 if (g_context->root_ca_path) { in coap_dtls_context_set_pki_root_cas()
340 if (!g_context || !setup_data) in coap_dtls_context_set_spsk()
430 if (g_context) { in coap_dtls_new_context()
462 return g_context; in coap_dtls_new_context()
465 if (g_context) in coap_dtls_new_context()
498 gnutls_free(g_context); in coap_dtls_free_context()
536 if (g_context == NULL) in psk_client_callback()
[all …]
/dports/sysutils/msktutil/msktutil-1.1/
H A Dkrb5wrap.cpp62 krb5_error_code ret = krb5_init_context(&g_context); in initialize_g_context()
71 krb5_free_context(g_context); in destroy_g_context()
72 g_context = 0; in destroy_g_context()
78 krb5_error_code ret = krb5_cc_initialize(g_context, in initialize()
89 krb5_error_code ret = krb5_cc_store_cred(g_context, in store()
103 krb5_get_init_creds_keytab(g_context, in KRB5Creds()
120 krb5_get_init_creds_password(g_context, in KRB5Creds()
138 krb5_error_code ret = krb5_unparse_name(g_context, in name()
171 (void) krb5_kt_remove_entry(g_context, in addEntry()
174 krb5_error_code ret = krb5_kt_add_entry(g_context, in addEntry()
[all …]
/dports/devel/libconcurrent/libconcurrent-50fe214cac8e17a8bdafdcf37c20365cbbc0caa4/examples/
H A Dconcurrent_sort1.c14 struct concurrent_ctx *g_context; variable
29 yield(g_context); in comp()
47 yield(g_context); in coro()
49 yield(g_context); in coro()
64 g_context = malloc(ctx_sizeof()); in main()
66 ctx_construct(g_context, stack, stack_size, coro, (void *)&sort_arg); in main()
67 while (!ctx_is_done(g_context)) { in main()
68 size_t stack_size_used = ctx_get_stack_used(g_context); in main()
73 resume(g_context); in main()
76 ctx_destruct(g_context); in main()
[all …]
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/common/
H A Dslurm_jobcomp.c123 if (init_run && g_context) in g_slurm_jobcomp_init()
126 if (g_context) in g_slurm_jobcomp_init()
127 plugin_context_destroy(g_context); in g_slurm_jobcomp_init()
130 g_context = plugin_context_create( in g_slurm_jobcomp_init()
133 if (!g_context) { in g_slurm_jobcomp_init()
142 if (g_context) in g_slurm_jobcomp_init()
153 if ( !g_context) in g_slurm_jobcomp_fini()
158 g_context = NULL; in g_slurm_jobcomp_fini()
170 if ( g_context ) in g_slurm_jobcomp_write()
186 if ( g_context ) in g_slurm_jobcomp_get_jobs()
[all …]
H A Dsite_factor.c63 static plugin_context_t *g_context = NULL; variable
78 if (init_run && g_context) in site_factor_plugin_init()
83 if (g_context) in site_factor_plugin_init()
88 g_context = plugin_context_create(plugin_type, type, (void **)&ops, in site_factor_plugin_init()
91 if (!g_context) { in site_factor_plugin_init()
111 if (!g_context) in site_factor_plugin_fini()
116 rc = plugin_context_destroy(g_context); in site_factor_plugin_fini()
117 g_context = NULL; in site_factor_plugin_fini()
H A Dslurm_acct_gather_interconnect.c81 static plugin_context_t **g_context = NULL; variable
105 if (!g_context[i]) in _watch_node()
149 if (!g_context[g_context_num]) { in acct_gather_interconnect_init()
194 if (!g_context[i]) in acct_gather_interconnect_fini()
197 rc2 = plugin_context_destroy(g_context[i]); in acct_gather_interconnect_fini()
200 g_context[i]->type, in acct_gather_interconnect_fini()
207 xfree(g_context); in acct_gather_interconnect_fini()
255 if (!g_context[i]) in acct_gather_interconnect_g_conf_options()
272 if (!g_context[i]) in acct_gather_interconnect_g_conf_set()
289 if (!g_context[i]) in acct_gather_interconnect_g_conf_values()
[all …]
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/slurmctld/
H A Dsched_plugin.c67 static plugin_context_t *g_context = NULL; variable
83 if ( init_run && g_context ) in slurm_sched_init()
88 if ( g_context ) in slurm_sched_init()
92 g_context = plugin_context_create( in slurm_sched_init()
95 if (!g_context) { in slurm_sched_init()
112 if (!g_context) in slurm_sched_fini()
116 rc = plugin_context_destroy(g_context); in slurm_sched_fini()
117 g_context = NULL; in slurm_sched_fini()
/dports/textproc/uim-el/uim-d1ac9d9/fep/
H A Dhelper.c100 uim_prop_update_custom(g_context, sym, value); in helper_handler()
112 uim_prop_list_update(g_context); in helper_handler()
121 uim_prop_activate(g_context, menucommand_name); in helper_handler()
183 uim_switch_im(g_context, imname); in helper_handler_change_im()
192 int nr_im = uim_get_nr_im(g_context); in send_im_list()
193 const char *current_im_name = uim_get_current_im_name(g_context); in send_im_list()
200 const char *name = uim_get_im_name(g_context, i); in send_im_list()
201 const char *langcode = uim_get_im_language(g_context, i); in send_im_list()
203 const char *short_desc = uim_get_im_short_desc(g_context, i); in send_im_list()
223 uim_helper_client_focus_in(g_context); in focus_in()
[all …]

12345678