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 int getBlackElo() { return m_header.getBlackElo(); }
public int getWhiteElo() { return m_header.getWhiteElo(); }
public int getResult() { return m_header.getResult(); }
public String getECO() { return m_header.getECO(); }
public String getEventDate() { return m_header.getEventDate(); }
public String getBlackEloStr() { return m_header.getBlackEloStr(); }
public String getWhiteEloStr() { return m_header.getWhiteEloStr(); }
public String getResultStr() { return m_header.getResultStr(); }
public String getRound() { return m_header.getRound(); }
public String getSite() { return m_header.getSite(); }
public void setTag(String tagName, String tagValue) { m_header.setTag(tagName, tagValue); if (PGN.TAG_FEN.equals(tagName)) { setPosition(new Position(tagValue, false)); } }
public String[] getTags() { return m_header.getTags(); }
public String getTag(String tagName) { return m_header.getTag(tagName); }