Example #1
0
        public override bool CollidesWith(Tile tile)
        {
            bool result = false;

            if (CollisionUtility.Intersects(bounds, tile.GetBounds()))
            {
                CollisionUtility.ResolveNPCTileCollision(this, tile);
                result = true;
            }

            return(result);
        }
Example #2
0
        public virtual bool CollidesWith(EnemySprite Npc)
        {
            bool result = false;

            if (CollisionUtility.Intersects(bounds, Npc.bounds))
            {
                CollisionUtility.ResolvePlayerNpcCollision(this, Npc);
                result = true;
            }

            return(result);
        }