WaterFlowService

floodsim.model.logic.service.WaterFlowService
See theWaterFlowService companion object
sealed trait WaterFlowService

Service for handling water flow dynamics between cells in the simulation. Manages the movement of water across the grid based on physical principles such as height differences and flow speed.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Calculates water movement between cells and produces an updated grid.

Calculates water movement between cells and produces an updated grid.

Value parameters

cellGrid

the current grid of cells

Attributes

Returns

an updated grid with water redistributed according to flow rules