public Bomb GetBomb() { for (int i = 0; i < movableCells.Count; ++i) { MovableCell cell = movableCells[i]; if (cell.IsBomb()) { return(cell.AsBomb()); } } return(null); }
protected override bool HandleCollision(MovableCell other) { if (other.IsBomb()) { return(HandleCollision(other.AsBomb())); } if (other.IsPlayer()) { return(HandleCollision(other.AsPlayer())); } return(false); }