Exemplo n.º 1
0
 public bool HasThisQuest(Quest quest)
 {
     return(Quests.Any(pq => pq.Details.ID == quest.ID));
 }
Exemplo n.º 2
0
 private bool PlayerHasNotCompleted(Quest quest)
 {
     return Quests.Any(pq => pq.Details.ID == quest.ID && !pq.IsCompleted);
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 7
0
 public bool HasQuest(int questID)
 {
     return(Quests.Any(pq => pq.ID == questID));
 }
Exemplo n.º 8
0
 public bool HasThisQuest(Quest quest)
 {
     //LAMBDA LINQ FOREACH substitute
     //Lession 19.3
     return(Quests.Any(pq => pq.Details.ID == quest.ID));
 }
Exemplo n.º 9
0
 public bool CompletedThisQuest(Quest quest)
 {
     return(Quests.Any(pq => (pq.Details.ID == quest.ID) && pq.IsCompleted));
 }