void instance_violet_hold::ResetAll() { ResetVariables(); UpdateWorldState(false); CallGuards(true); SetIntroPortals(false); }
void instance_violet_hold::ResetAll() { ResetVariables(); UpdateWorldState(false); CallGuards(true); SetIntroPortals(false); for (std::vector<BossSpawn*>::const_iterator itr = m_vRandomBosses.begin(); itr != m_vRandomBosses.end(); ++itr) { const BossInformation* pData = GetBossInformation((*itr)->uiEntry); if (pData && m_auiEncounter[pData->uiType] == DONE) { if (Creature* pGhostBoss = GetSingleCreatureFromStorage(pData->uiGhostEntry)) { if (!pGhostBoss->isAlive()) pGhostBoss->Respawn(); } else if (Creature* pSummoner = GetSingleCreatureFromStorage(NPC_SINCLARI_ALT)) pSummoner->SummonCreature(pData->uiGhostEntry, (*itr)->fX, (*itr)->fY, (*itr)->fZ, (*itr)->fO, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600*IN_MILLISECONDS); // Close Door if still open UpdateCellForBoss(pData->uiEntry, true); } } }
String MultiReceiver::ReceiveMulti() { pinMode(_pinId, INPUT); ResetVariables(); WaitForLongLow(); RearrangeReadings(); return ReceiveData(); }
void instance_violet_hold::ResetAll() { ResetVariables(); UpdateWorldState(false); CallGuards(true); SetIntroPortals(false); // ToDo: reset the activation crystals when implemented for (std::vector<BossSpawn*>::const_iterator itr = m_vRandomBosses.begin(); itr != m_vRandomBosses.end(); ++itr) { const BossInformation* pData = GetBossInformation((*itr)->uiEntry); if (pData && m_auiEncounter[pData->uiType] == DONE) { // Despawn ghost boss if (Creature* pGhostBoss = GetSingleCreatureFromStorage(pData->uiGhostEntry)) pGhostBoss->ForcedDespawn(); // Spawn new boss replacement if (Creature* pSummoner = GetSingleCreatureFromStorage(NPC_SINCLARI_ALT)) pSummoner->SummonCreature(pData->uiGhostEntry, (*itr)->fX, (*itr)->fY, (*itr)->fZ, (*itr)->fO, TEMPSUMMON_DEAD_DESPAWN, 0); // Replace Erekem guards if (pData->uiType == TYPE_EREKEM) { // Despawn ghost guards for (GuidList::const_iterator itr = m_lArakkoaGuardList.begin(); itr != m_lArakkoaGuardList.end(); ++itr) { if (Creature* pGhostGuard = instance->GetCreature(*itr)) pGhostGuard->ForcedDespawn(); } m_lArakkoaGuardList.clear(); // Spawn new guards replacement float fX, fY, fZ, fO; for (GuidList::const_iterator itr = m_lErekemGuardList.begin(); itr != m_lErekemGuardList.end(); ++itr) { if (Creature* pGuard = instance->GetCreature(*itr)) { // Don't allow alive original guards while the boss is dead if (!pGuard->isDead()) pGuard->ForcedDespawn(); // Spawn a ghost guard for each original guard pGuard->GetRespawnCoord(fX, fY, fZ, &fO); pGuard->SummonCreature(NPC_ARAKKOA_GUARD, fX, fY, fZ, fO, TEMPSUMMON_DEAD_DESPAWN, 0); } } } } // Close Door if still open if (pData && (m_auiEncounter[pData->uiType] == DONE || m_auiEncounter[pData->uiType] == FAIL)) UpdateCellForBoss(pData->uiEntry, true); } }
String X10Receiver::Receive() { ResetVariables(); pinMode(_pinId, INPUT); WaitForLongLow(); ReadLows(); String buttonName = Decode(); delay(200); return buttonName; }
//------------------------------------------------------------------------------ void Solver::CompleteInitialization() { OpenSolverTextFile(); WriteToTextFile(); currentState = NOMINAL; // Reset initial values if in DiscardAndContinue mode if (exitMode == DISCARD) { ResetVariables(); } }
bool CBullet::Initialise() { CProjectile::Initialise(); CRotationEntity::Initialise(IDB_BULLET, IDB_BULLETMASK, 48, 90, 4); CRotationEntity::SetRadius(12); CProjectile::SetMovementVelocity(1000); ResetVariables(); return (true); }
void instance_violet_hold::ResetAll() { ResetVariables(); UpdateWorldState(false); CallGuards(true); SetIntroPortals(false); // ToDo: reset the activation crystals when implemented // open instance door DoUseDoorOrButton(GO_PRISON_SEAL_DOOR); for (std::vector<BossSpawn*>::const_iterator itr = m_vRandomBosses.begin(); itr != m_vRandomBosses.end(); ++itr) { const BossInformation* pData = GetBossInformation((*itr)->uiEntry); if (pData && m_auiEncounter[pData->uiType] == DONE) { if (Creature* pGhostBoss = GetSingleCreatureFromStorage(pData->uiGhostEntry)) { if (!pGhostBoss->isAlive()) pGhostBoss->Respawn(); // Reset passive flags pGhostBoss->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PASSIVE); } else if (Creature* pSummoner = GetSingleCreatureFromStorage(NPC_SINCLARI_ALT)) pSummoner->SummonCreature(pData->uiGhostEntry, (*itr)->fX, (*itr)->fY, (*itr)->fZ, (*itr)->fO, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600 * IN_MILLISECONDS); // Respawn Erekem guards if (pData->uiType == TYPE_EREKEM) { for (GuidList::const_iterator itr = m_lErekemGuardList.begin(); itr != m_lErekemGuardList.end(); ++itr) { if (Creature* pGuard = instance->GetCreature(*itr)) { pGuard->Respawn(); pGuard->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PASSIVE); } } } } // Close Door if still open if (pData && (m_auiEncounter[pData->uiType] == DONE || m_auiEncounter[pData->uiType] == FAIL)) UpdateCellForBoss(pData->uiEntry, true); } }
static void ResetConfigs(qbool resetall, qbool read_legacy_configs) { #ifndef WITH_FTE_VFS FILE *f; #else vfsfile_t *v; #endif ResetVariables(CVAR_SERVERINFO, !resetall); DeleteUserAliases(); DeleteUserVariables(); ResetBinds(); ResetPlusCommands(); ResetTeamplayCommands(); ResetMiscCommands(); if (read_legacy_configs) { Cbuf_AddText ("cl_warncmd 0\n"); Cbuf_AddText ("exec default.cfg\n"); #ifndef WITH_FTE_VFS if (FS_FOpenFile("autoexec.cfg", &f) != -1) { Cbuf_AddText ("exec autoexec.cfg\n"); fclose(f); } #else if ((v = FS_OpenVFS("autoexec.cfg", "rb", FS_ANY))) { Cbuf_AddText ("exec autoexec.cfg\n"); VFS_CLOSE(v); } #endif Cbuf_AddText ("cl_warncmd 1\n"); } }
static void ResetConfigs(qbool resetall, qbool read_legacy_configs) { vfsfile_t *v; ResetVariables(CVAR_SERVERINFO, !resetall); DeleteUserAliases(); DeleteUserVariables(); ResetBinds(); ResetPlusCommands(); ResetTeamplayCommands(); ResetMiscCommands(); if (read_legacy_configs) { Cbuf_AddText ("cl_warncmd 0\n"); if ((v = FS_OpenVFS("autoexec.cfg", "rb", FS_ANY))) { Cbuf_AddText ("exec autoexec.cfg\n"); VFS_CLOSE(v); } Cbuf_AddText ("cl_warncmd 1\n"); } }
/********************************************************************************************* Check if the 'Start Time' < 'End Time' *********************************************************************************************/ BOOL CEntryInfoDlg::CheckStartEndTime() { BOOL fRetval = true; ResetVariables(); //Get the hour and minutes for the start time GetHourMinute(m_szStartTime, m_szStartTimeHour, m_szStartTimeMinute, m_iStartHour); //Get the hour and minutes for the end time GetHourMinute(m_szEndTime, m_szEndTimeHour, m_szEndTimeMinute, m_iEndHour); CTime startTime(2000, 8, 27, m_iStartHour, atoi(m_szStartTimeMinute), 0); CTime endTime(2000, 8, 27, m_iEndHour, atoi(m_szEndTimeMinute), 0); if (startTime >= endTime) { AfxMessageBox(IDS_INVALIDTIME); fRetval = false; } return fRetval; }
void CBullet::Kill() { ResetVariables(); CProjectile::Kill(); }