Esempio n. 1
0
 //Pass the choice user pick
 public Ticket ProcessChoice(Ticket ticket, ChoiceStats pick_choice)
 {
     if (_qProcessor == null)
     {
         return(default(Ticket));
     }
     return(_qProcessor.ProcessChoice(ticket, pick_choice));
 }
Esempio n. 2
0
        //Insert a record to dictionary
        public void RecordChoice(ChoiceStats selectedChoice, EventStats choiceEvent)
        {
            ImplementEffect(selectedChoice.Effect);

            if (!IsChoiceSelected(selectedChoice.ChoiceID, selectedChoice.UniqueID))
            {
                ChoiceRecord choiceRecord = new ChoiceRecord();
                choiceRecord.selectedChoice = selectedChoice;
                choiceRecord.choiceEvent    = choiceEvent;

                SelecteChoiceRecord.Add(choiceRecord);
            }
        }
Esempio n. 3
0
        public Ticket ProcessChoice(Ticket ticket, ChoiceStats pick_choice)
        {
            _qmodel.RecordChoice(pick_choice, ticket.eventStats);

            return(ProcessNextEvent(pick_choice.NextStep));
        }