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; }
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; } }
public void completeQuest() { this.questStatus = QUEST_STATUS.Completed; this.handInTime = DateTime.UtcNow.Millisecond; }