[LIB-9] Add SAN, NAG, move number and result PGN tokens
[chesshog.git] / chesshog-format / src / main / java / org / hedgecode / chess / pgn / entity / DetailMove.java
index 2b37204..4463a77 100644 (file)
@@ -19,6 +19,8 @@ package org.hedgecode.chess.pgn.entity;
 import java.util.ArrayList;
 import java.util.List;
 
+import org.hedgecode.chess.pgn.nag.Glyph;
+
 /**
  * DetailMove
  *
@@ -29,6 +31,7 @@ public class DetailMove implements Move {
     private int ply;
     private String move;
 
+    private List<Glyph> glyphs = new ArrayList<>();
     private List<String> comments = new ArrayList<>();
     private List<Variation> variations = new ArrayList<>();
 
@@ -47,6 +50,10 @@ public class DetailMove implements Move {
         return move;
     }
 
+    public void addGlyph(Glyph glyph) {
+        glyphs.add(glyph);
+    }
+
     public void addComment(String comment) {
         comments.add(comment);
     }
@@ -55,6 +62,10 @@ public class DetailMove implements Move {
         variations.add(variation);
     }
 
+    public List<Glyph> glyphs() {
+        return glyphs;
+    }
+
     public List<String> comments() {
         return comments;
     }