예제 #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);
 }