private XElement addStyle(XElement node, Piece p) { if (p.getStyle() != null) node.Add(new XAttribute("style", p.getStyle())); return node; }
public Cell addPiece(Piece piece) { pieces.Add(piece); return this; }