public bool IntersectsWith(GameObject other) { return this.Left < other.Right && this.Right > other.Left && this.Top < other.Bottom && this.Bottom > other.Top; }
protected override void HitCeiling(GameObject topHit) { if (topHit is Block) { if (canHitBlock) { if (--((Block)topHit).life < 0) room.blocks.BufferRemove(topHit); canHitBlock = false; } } base.HitCeiling(topHit); }
protected virtual void HitCeiling(GameObject topHit) { // Nothing. }