Method | Description | |
---|---|---|
ChangeState ( ) : void | ||
IsActive ( ) : bool | ||
SetState ( bool active ) : void | ||
Update ( |
||
WaterSource ( Sprite emptySprite, Sprite fullSprite ) : System |
Creates a new water source.
|
|
bindToLevel ( |
Assigns the level the water source belongs to.
|
|
increaseWaterLevel ( ) : void |
Increase the water level by one (tile).
|
Method | Description | |
---|---|---|
fillRow ( int x, int y, bool lookLeft ) : List |
Fills a row of tiles, turing all Passable tiles into Water tiles. The process stops when the first non-Passable tile is found.
|
|
propogate ( List |
Propogates water tiles by filling adjacent Passable tiles with water. For all provided water tiles, if a Passable tile is found below, to the right, or to the left, that tile will be made Water and will be propogated.
|
public Update ( |
||
gameTime | ||
return | void |
public WaterSource ( Sprite emptySprite, Sprite fullSprite ) : System | ||
emptySprite | Sprite | Sprite to indicate a non-water background. |
fullSprite | Sprite | prite to indicate a water background. |
return | System |
public bindToLevel ( |
||
level | Housing level. | |
return | void |