public override bool CollidesWith(Tile tile) { bool result = false; if (CollisionUtility.Intersects(bounds, tile.GetBounds())) { CollisionUtility.ResolveNPCTileCollision(this, tile); result = true; } return(result); }
public virtual bool CollidesWith(EnemySprite Npc) { bool result = false; if (CollisionUtility.Intersects(bounds, Npc.bounds)) { CollisionUtility.ResolvePlayerNpcCollision(this, Npc); result = true; } return(result); }