Exemplo n.º 1
0
        /*
         * Sub classes will override these methods to implement mouse operations on their canvas
         */
        override public eMouseDownCapture MouseDown(int ScreenMouseX, int ScreenMouseY)
        {
            /*
             * Try to capture something in the outline, then the open area, in turn
             */
            eMouseDownCapture sts = OutlineAreas.MouseDown(ScreenMouseX, ScreenMouseY);

            if (sts != eMouseDownCapture.Nothing)
            {
                return(sts);
            }

            sts = OpenAreas.MouseDown(ScreenMouseX, ScreenMouseY);
            if (sts != eMouseDownCapture.Nothing)
            {
                return(sts);
            }

            sts = Walls.MouseDown(ScreenMouseX, ScreenMouseY);

            return(sts);
        }