public bool Intersects(PrimShape other) { if (other.GetType() == typeof(PrimRectangle)) { Rectangle candidate = new Rectangle((int)(other.GetX()), (int)(other.GetY()), (int)(other.GetWidth()), (int)(other.GetHeight())); return(_rectangle.Intersects(candidate)); } else { throw new InvalidCastException(); } }
// TODO: implement public bool WillIntersect(PrimShape other, GameTime delta) { throw new NotImplementedException(); }
// TODO: implement public bool Intersects(PrimShape other) { throw new NotImplementedException(); }