Example #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());
    }
  }
Example #2
0
 public int getBlackElo() {
   return m_header.getBlackElo();
 }
Example #3
0
 public int getWhiteElo() {
   return m_header.getWhiteElo();
 }
Example #4
0
 public int getResult() {
   return m_header.getResult();
 }
Example #5
0
 public String getECO() {
   return m_header.getECO();
 }
Example #6
0
 public String getEventDate() {
   return m_header.getEventDate();
 }
Example #7
0
 public String getBlackEloStr() {
   return m_header.getBlackEloStr();
 }
Example #8
0
 public String getWhiteEloStr() {
   return m_header.getWhiteEloStr();
 }
Example #9
0
 public String getResultStr() {
   return m_header.getResultStr();
 }
Example #10
0
 public String getRound() {
   return m_header.getRound();
 }
Example #11
0
 public String getSite() {
   return m_header.getSite();
 }
Example #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));
   }
 }
Example #13
0
 public String[] getTags() {
   return m_header.getTags();
 }
Example #14
0
 public String getTag(String tagName) {
   return m_header.getTag(tagName);
 }