Method | Description | |
---|---|---|
ChangeState ( ) : void | ||
IsActive ( ) : bool | ||
SetState ( bool active ) : void | ||
Update ( |
||
WaterDrain ( Sprite sprite ) : System |
Creates a new water drain.
|
|
bindToLevel ( |
Assigns the level the water drain belongs to.
|
|
decreaseWaterLevel ( ) : void |
Decrease the water level by one (tile).
|
Method | Description | |
---|---|---|
drainRow ( int x, int y, bool lookLeft ) : void |
Drains a row of tiles, turing all Water tiles into Passable tiles. The process stops when the first non-Water tile is found.
|
public Update ( |
||
gameTime | ||
return | void |
public WaterDrain ( Sprite sprite ) : System | ||
sprite | Sprite | The look and position of the water drain. |
return | System |
public bindToLevel ( |
||
level | Housing level. | |
return | void |