PunkX.Mask.collide C# (CSharp) 메소드

collide() 공개 메소드

Checks for collision with another Mask.
public collide ( Mask mask ) : System.Boolean
mask Mask The other Mask to check against.
리턴 System.Boolean
        public Boolean collide(Mask mask)
        {
            if (_check[mask._class] != null) return _check[mask._class](mask);
            if (mask._check[_class] != null) return mask._check[_class](this);
            return false;
        }

Usage Example

예제 #1
0
파일: Mask.cs 프로젝트: RichardMarks/PunkX
 /// <summary>
 /// Collide against a Masklist.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 protected Boolean collideMasklist(Mask other)
 {
     Masklist m = (Masklist)other;
     return other.collide(this);
 }