fn sand_state_next_tick(&mut self, row : u32, column : u32) -> Cell {
        if self.sand_can_fall(row+1, column) {
            let bottom_index = self.get_index(row+1, column);
            self.nexts[bottom_index] = Cell::Sand;
            Cell::Dead
        } else{
            Cell::Sand
        }
    }
// Function that calculates the cell identity of a Sand object in the next tick
Function that calculates the cell identity of a Sand object in the next tick
Function that calculates the cell identity of a Sand object in the next tick
fn sand_state_next_tick(&mut self, row : u32, column : u32) -> Cell {
        if self.sand_can_fall(row+1, column) {
            let bottom_index = self.get_index(row+1, column);
            self.nexts[bottom_index] = Cell::Sand;
            Cell::Dead
        } else{
            Cell::Sand
        }
    }
fn sand_state_next_tick ( & mut self , row : u32 , column : u32 ) -> Cell { if self . sand_can_fall ( row + 1 , column ) { let bottom_index = self . get_index ( row + 1 , column ) ; self . nexts [ bottom_index ] = Cell :: Sand ; Cell :: Dead } else { Cell :: Sand } }
Function that calculates the cell identity of a Sand object in the next tick
Function that calculates the cell identity of a Sand object in the next tick
&mut self
row
u32
column
u32
&mut self
row
u32
column
u32