private void setModel(GameModel gameModel) { m_model = gameModel; m_header = gameModel.getHeaderModel(); m_moves = gameModel.getMoveModel(); String fen = m_header.getTag(PGN.TAG_FEN); if (fen != null) { setPosition(new Position(fen, false)); } else { setPosition(Position.createInitialPosition()); } }
public String getTag(String tagName) { return m_header.getTag(tagName); }