Inheritance: GrandLarceny.States
Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
        }