public bool Equals(ICollisionInstance other)
        {
            EntityCollisionInstance o = other as EntityCollisionInstance;

            return(o != null &&
                   GetArea() == o.GetArea() &&
                   c1 == o.c1 &&
                   c2 == o.c2);
        }
        public bool Equals(ICollisionInstance other)
        {
            BlockCollisionInstance o = other as BlockCollisionInstance;

            return(o != null &&
                   GetArea() == o.GetArea() &&
                   entity == o.entity &&
                   block == o.block &&
                   x == o.x &&
                   y == o.y);
        }
 public int CompareTo(ICollisionInstance other)
 {
     return(other.GetArea().CompareTo(GetArea()));
 }