//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)); }
//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); } }
public Ticket ProcessChoice(Ticket ticket, ChoiceStats pick_choice) { _qmodel.RecordChoice(pick_choice, ticket.eventStats); return(ProcessNextEvent(pick_choice.NextStep)); }