void AliasPass1(void) { AliasInit(); // when we get here it is expected we are in SSA mode Createaddresses(); do { changed = FALSE; GatherAliases(loopArray[loopCount-1]); } while (changed); }
/* * InterfaceUserChanged: Player object changed; update safety flag and redraw player. */ void InterfaceUserChanged(void) { room_contents_node *r; Bool new_safety; UserAreaRedraw(); AliasInit(); r = GetRoomObjectById(cinfo->player->id); if (r == NULL) return; new_safety = ((r->obj.flags & OF_SAFETY) != 0); if (new_safety) { if (cinfo->config->aggressive) { if (!safety_flipped) SendSafety(0); safety_flipped = True; } else { pinfo.aggressive = cinfo->config->aggressive = False; safety_flipped = False; } } else { if (!cinfo->config->aggressive) { if (!safety_flipped) SendSafety(1); safety_flipped = True; } else { pinfo.aggressive = cinfo->config->aggressive = True; safety_flipped = False; } } }
/* * InterfaceInit: Called on startup. Initialize interface. */ void InterfaceInit(void) { int i; RECT r; AREA area; for (i = 0; i < num_default_buttons; i++) { default_buttons[i].hModule = hInst; ToolbarAddButton(&default_buttons[i]); } RequestSkills(); RequestSpells(); SpellsInit(); ActionsInit(); InventoryBoxCreate(cinfo->hMain); StatsCreate(cinfo->hMain); GroupsLoad(); InterfaceDrawInit(); UserAreaCreate(); AliasInit(); CmdAliasInit(); EnchantmentsInit(); GetClientRect(cinfo->hMain, &r); CopyCurrentView(&area); InterfaceResizeModule(r.right, r.bottom, &area); pinfo.resting = False; safety_flipped = False; if (pinfo.resting) RequestRest(); else RequestStand(); if (cinfo->config->aggressive) SendSafety(0); else SendSafety(1); }