Esempio n. 1
0
 /// <summary>
 /// 检测与边界对象是否冲突,该方法无效
 /// </summary>
 /// <param name="Border"></param>
 /// <returns></returns>
 public CollisionResult CheckCollisionWithBorder(BorderColMethod Border)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="borderRect">边界矩形</param>
 public BorderColChecker(Rectanglef borderRect)
 {
     method = new BorderColMethod(borderRect);
 }
Esempio n. 3
0
 /// <summary>
 /// 检测与边界对象是否冲突
 /// </summary>
 /// <param name="Border"></param>
 /// <returns></returns>
 public CollisionResult CheckCollisionWithBorder ( BorderColMethod Border )
 {
     CollisionResult temp = Border.CheckCollisionWithSprites( this );
     return new CollisionResult( temp.IsCollided, temp.InterPos, -temp.NormalVector );
 }
Esempio n. 4
0
        /// <summary>
        /// 检测与边界对象是否冲突
        /// </summary>
        /// <param name="Border"></param>
        /// <returns></returns>
        public CollisionResult CheckCollisionWithBorder(BorderColMethod Border)
        {
            CollisionResult temp = Border.CheckCollisionWithSprites(this);

            return(new CollisionResult(temp.IsCollided, temp.InterPos, -temp.NormalVector));
        }
Esempio n. 5
0
 /// <summary>
 /// 检测与边界对象是否冲突,该方法无效
 /// </summary>
 /// <param name="Border"></param>
 /// <returns></returns>
 public CollisionResult CheckCollisionWithBorder( BorderColMethod Border )
 {
     throw new Exception( "The method or operation is not implemented." );
 }
Esempio n. 6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="borderRect">边界矩形</param>
 public BorderColChecker( Rectanglef borderRect )
 {
     method = new BorderColMethod( borderRect );
 }