public collide ( |
||
mask | The other Mask to check against. | |
return | 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;
}
/// <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); }