public bool HasThisQuest(Quest quest) { return(Quests.Any(pq => pq.Details.ID == quest.ID)); }
private bool PlayerHasNotCompleted(Quest quest) { return Quests.Any(pq => pq.Details.ID == quest.ID && !pq.IsCompleted); }
public bool HasThisQuest(Quest quest) { return(Quests.Any(playerQuest => playerQuest.Details.ID == quest.ID)); }
public bool PlayerNotCompletedThisQuest(Quest quest) { return(Quests.Any(pq => pq.Details.ID == quest.ID && !pq.IsCompleted)); }
public bool PlayerHasNotCompleted(Quest questToCheck) { return(!(bool)Quests.Any(playerQuest => (playerQuest.Details.ID == questToCheck.ID) && playerQuest.IsCompleted)); }
public bool PlayerDoesNotHaveThisQuest(Quest questToCheck) { return(!Quests.Any(playerQuest => playerQuest.Details.ID == questToCheck.ID)); }
public bool HasQuest(int questID) { return(Quests.Any(pq => pq.ID == questID)); }
public bool HasThisQuest(Quest quest) { //LAMBDA LINQ FOREACH substitute //Lession 19.3 return(Quests.Any(pq => pq.Details.ID == quest.ID)); }
public bool CompletedThisQuest(Quest quest) { return(Quests.Any(pq => (pq.Details.ID == quest.ID) && pq.IsCompleted)); }