/// <summary> /// Deal damage to a block, weakning it. When its health reaches 0 or less, it gets destroyed. /// </summary> public bool DamageBlock(int x, int y, BlockType type, int damage) { switch (type) { case BlockType.Wall: return(BlockMap.DamageBlock(x, y, damage)); case BlockType.Tile: return(TileMap.DamageBlock(x, y, damage)); default: return(false); } }