コード例 #1
0
ファイル: Sprite.cs プロジェクト: knutdr/Space_defender
        public virtual bool doesCollideWith(ISprite otherSprite)
        {
            // no collision with self.
            if (Equals(otherSprite))
                return false;

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