Beispiel #1
0
        //System.Windows.Forms.ComboBox combobox;
        public static void addToEventQueue(Event e)
        {
            if (DEBUG)
                Console.WriteLine("Adding event : " + e.getEventType());

            if (eventqueue != null)
                eventqueue.Enqueue(e);
        }
Beispiel #2
0
        private void processAddEvent(Tile thetile)
        {
            Event e = new Event();
            Form1 form = new Form1(e);
            form.ShowDialog();

            /*
            String map = e.getProperty("mapfile");
            String x = e.getProperty("x");
            String y = e.getProperty("y");
            */
            if(e.getEventType() != EventType.CANCELED)
                thetile.addEvent(e);

            //Console.WriteLine("map=>" + map + "<, x=>" + x + "<, y=>" + y + "<");
        }