Example #1
0
        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();
            }
        }
Example #2
0
 // TODO: implement
 public bool WillIntersect(PrimShape other, GameTime delta)
 {
     throw new NotImplementedException();
 }
Example #3
0
 // TODO: implement
 public bool Intersects(PrimShape other)
 {
     throw new NotImplementedException();
 }