示例#1
0
 void VMapManager::preventMapsFromBeingUsed(const char* pMapIdString)
 {
     if(pMapIdString != NULL)
     {
         unsigned int pos =0;
         unsigned int id;
         std::string confString(pMapIdString);
         chompAndTrim(confString);
         while(getNextMapId(confString, pos, id))
         {
             iIgnoreMapIds.set(id, true);
         }
     }
 }
void VMapFactory::preventSpellsFromBeingTestedForLoS(
		const char* pSpellIdString) {
	if (!iIgnoreSpellIds)
		iIgnoreSpellIds = new Table<unsigned int, bool>();
	if (pSpellIdString != NULL) {
		unsigned int pos = 0;
		unsigned int id;
		std::string confString(pSpellIdString);
		chompAndTrim(confString);
		while (getNextId(confString, pos, id)) {
			iIgnoreSpellIds->set(id, true);
		}
	}
}
示例#3
0
bool Player::requiredQuests(const char* pQuestIdString)
{
    if (pQuestIdString != nullptr)
    {
        unsigned int pos = 0;
        unsigned int id;
        std::string confString(pQuestIdString);
        chompAndTrim(confString);
        while (getNextQuestId(confString, pos, id))
        {
            QuestStatus status = GetQuestStatus(id);
            if (status == QUEST_STATUS_COMPLETE)
                return true;
        }
    }
    return false;
}