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