public static CCStandardTouchHandler handlerWithDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
        {
            CCStandardTouchHandler cCStandardTouchHandler = new CCStandardTouchHandler();

            cCStandardTouchHandler.initWithDelegate(pDelegate, nPriority);
            return(cCStandardTouchHandler);
        }
        public void addStandardDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
        {
            CCTouchHandler cCTouchHandler = CCStandardTouchHandler.handlerWithDelegate(pDelegate, nPriority);

            if (!this.m_bLocked)
            {
                this.forceAddHandler(cCTouchHandler, this.m_pStandardHandlers);
                return;
            }
            this.m_pHandlersToAdd.Add(cCTouchHandler);
            this.m_bToAdd = true;
        }
        /// <summary>
        /// Adds a standard touch delegate to the dispatcher's list.
        /// See StandardTouchDelegate description.
        /// IMPORTANT: The delegate will be retained.
        /// </summary>
        public void addStandardDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
        {
            CCTouchHandler pHandler = CCStandardTouchHandler.handlerWithDelegate(pDelegate, nPriority);

            if (!m_bLocked)
            {
                forceAddHandler(pHandler, m_pStandardHandlers);
            }
            else
            {
                m_pHandlersToAdd.Add(pHandler);
                m_bToAdd = true;
            }
        }
 /// <summary>
 /// allocates a TouchHandler with a delegate and a priority
 /// </summary>
 public static CCStandardTouchHandler handlerWithDelegate(ICCTouchDelegate pDelegate, int nPriority)
 {
     CCStandardTouchHandler pHandler = new CCStandardTouchHandler();
     pHandler.initWithDelegate(pDelegate, nPriority);
     return pHandler;
 }