C# Class World.GameActors.Tiles.Obstacle.DamagedWall

DamagedWall has health from (0,1) excl. If health leq 0, it is replaced by DestroyedWall. Only way how to make damage is to use pickaxe.
Inheritance: DynamicTile, IInteractableGameActor
Mostra file Open project: GoodAI/BrainSimulator Class Usage Examples

Public Methods

Method Description
ApplyGameAction ( IAtlas atlas, GameAction gameAction, System.Vector2 position, ITilesetTable tilesetTable = null ) : void
DamagedWall ( float damage, ITilesetTable tilesetTable, Vector2I position ) : System

Private Methods

Method Description
DamagedWall ( ITilesetTable tilesetTable, Vector2I position ) : System

Method Details

ApplyGameAction() public method

public ApplyGameAction ( IAtlas atlas, GameAction gameAction, System.Vector2 position, ITilesetTable tilesetTable = null ) : void
atlas IAtlas
gameAction World.GameActions.GameAction
position System.Vector2
tilesetTable ITilesetTable
return void

DamagedWall() public method

public DamagedWall ( float damage, ITilesetTable tilesetTable, Vector2I position ) : System
damage float
tilesetTable ITilesetTable
position Vector2I
return System