コード例 #1
0
        public void AddQuest(Quest quest)
        {
            bool hasQuest = Quests.Exists(playerQuest => playerQuest.Details.ID == quest.ID);

            if (!hasQuest)
            {
                PlayerQuest newQuest = new PlayerQuest(quest);
                Quests.Add(newQuest);
            }
        }
コード例 #2
0
 public bool HasThisQuest(Quest quest)
 {
     return(Quests.Exists(pq => pq.Details.ID == quest.ID));
 }
コード例 #3
0
 /*Quest Information
  * ==================*/
 public bool HasThisQuest(Quest quest)
 {
     return(Quests.Exists(playerQuest => playerQuest.Details.ID == quest.ID));
 }
コード例 #4
0
 public bool IsQuestCompleted(Quest quest)
 {
     return(Quests.Exists(playerQuest => playerQuest.Details.ID == quest.ID && playerQuest.IsCompleted));
 }
コード例 #5
0
 public bool IsQuestAccepted(Quest quest)
 {
     return(Quests.Exists(playerQuest => playerQuest.Details.ID == quest.ID));
 }
コード例 #6
0
 public bool HasThisQuest(Quest quest)
 {
     //Just like with required item, check to see if player has this quest.
     return(Quests.Exists(pq => pq.Details.ID == quest.ID));
 }
コード例 #7
0
ファイル: Player.cs プロジェクト: jayshah1232/SuperAdventure
 public bool hasThisQuest(Quest quest)
 {
     return(Quests.Exists(pq => pq.m_details.m_ID == quest.m_ID));
 }