public EventDevelopment(DevelopmentState a_backState, LinkedList<Event> a_events) { if (a_events == null) { throw new ArgumentNullException(); } m_numOfAddedEvents = 0; m_state = State.neutral; m_backState = a_backState; m_buttonList = new LinkedList<Button>(); m_guiList = new LinkedList<GuiObject>(); m_buttonsToAdd = new Stack<Button>(); m_buttonsToRemove = new Stack<Button>(); m_eventsToRemove = new Stack<Button>(); m_eventsToAdd = new Stack<Event>(); m_events = new Dictionary<Button, Event>(); m_effects = new Dictionary<Button, EventEffect>(); m_triggers = new Dictionary<Button, EventTrigger>(); m_stateButtons = new Stack<LinkedList<Button>>(); foreach (Event t_e in a_events) { addEvent(t_e); } }
public EventDevelopment(DevelopmentState a_backState, LinkedList<Event> a_events) { m_state = State.neutral; m_backState = a_backState; m_events = new Dictionary<Button, Event>(); buildEventList(a_events); }