Ejemplo n.º 1
0
 /*-------------------------------------------------------------------------
  * hittestとの比較
  * 合格するとコールバックが呼ばれる
  * ---------------------------------------------------------------------------*/
 public bool HitTest(hittest hit, int type)
 {
     if (HitTest(hit))
     {
         OnHit(hit, type);
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
        /*-------------------------------------------------------------------------
         * hittestとの比較
         * ---------------------------------------------------------------------------*/
        public bool HitTest(hittest hit)
        {
            Rectangle rect = hit.CalcRect();

            return(HitTest(rect));
        }
Ejemplo n.º 3
0
        /*-------------------------------------------------------------------------
         *
         * 継承先でのオーバーライド用
         *
         * ---------------------------------------------------------------------------*/

        /*-------------------------------------------------------------------------
         * ヒットテストに合格したときのコールバック
         * type はHitTest()に渡された値がそのまま渡される
         * ---------------------------------------------------------------------------*/
        virtual protected void OnHit(hittest hit, int type)
        {
        }