Пример #1
0
  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());
    }
  }
Пример #2
0
 public int getBlackElo() {
   return m_header.getBlackElo();
 }
Пример #3
0
 public int getWhiteElo() {
   return m_header.getWhiteElo();
 }
Пример #4
0
 public int getResult() {
   return m_header.getResult();
 }
Пример #5
0
 public String getECO() {
   return m_header.getECO();
 }
Пример #6
0
 public String getEventDate() {
   return m_header.getEventDate();
 }
Пример #7
0
 public String getBlackEloStr() {
   return m_header.getBlackEloStr();
 }
Пример #8
0
 public String getWhiteEloStr() {
   return m_header.getWhiteEloStr();
 }
Пример #9
0
 public String getResultStr() {
   return m_header.getResultStr();
 }
Пример #10
0
 public String getRound() {
   return m_header.getRound();
 }
Пример #11
0
 public String getSite() {
   return m_header.getSite();
 }
Пример #12
0
 public void setTag(String tagName, String tagValue) {
   m_header.setTag(tagName, tagValue);
   if (PGN.TAG_FEN.equals(tagName)) {
     setPosition(new Position(tagValue, false));
   }
 }
Пример #13
0
 public String[] getTags() {
   return m_header.getTags();
 }
Пример #14
0
 public String getTag(String tagName) {
   return m_header.getTag(tagName);
 }