Пример #1
0
 public Quest(string fileContents, Image location)
 {
     this.name        = fileContents.Substring(0, fileContents.IndexOf(Environment.NewLine));
     this.description = fileContents;
     this.location    = location;
     this.questStatus = QUEST_STATUS.NotReceived;
 }
Пример #2
0
        public void increaseProgress()
        {
            switch (this.questStatus)
            {
            case QUEST_STATUS.NotReceived:
                this.questStatus = QUEST_STATUS.InProgress;
                break;

            case QUEST_STATUS.InProgress:
                this.questStatus = QUEST_STATUS.Completed;
                handInTime       = DateTime.UtcNow.Millisecond;
                break;

            default:
                this.questStatus = QUEST_STATUS.NotReceived;
                break;
            }
        }
Пример #3
0
 public void completeQuest()
 {
     this.questStatus = QUEST_STATUS.Completed;
     this.handInTime  = DateTime.UtcNow.Millisecond;
 }