Ejemplo n.º 1
0
        public virtual bool doesCollideWith(ISprite otherSprite)
        {
            // no collision with self.
            if (Equals(otherSprite))
                return false;

            return GetBoundingBox().Intersects(otherSprite.GetBoundingBox());
        }