Class PGNData

java.lang.Object
io.github.wolfraam.chessgame.pgn.PGNData
All Implemented Interfaces:
Serializable

public class PGNData extends Object implements Serializable
PGN data belonging to the ChessGame.
See Also:
  • Constructor Details

    • PGNData

      public PGNData()
  • Method Details

    • addPGNCommentAfter

      public void addPGNCommentAfter(int moveIndex, PGNComment pgnComment)
      adds the PGN Comments after the move
    • addPGNCommentBefore

      public void addPGNCommentBefore(int moveIndex, PGNComment pgnComment)
      adds the PGN Comments after the move
    • copyFrom

      public void copyFrom(PGNData pgnData)
    • getAvailablePGNTags

      public Set<PGNTag> getAvailablePGNTags()
    • getPGNCommentsAfter

      public List<PGNComment> getPGNCommentsAfter(int moveIndex)
      Returns:
      the PGN Comments after the move
    • getPGNCommentsBefore

      public List<PGNComment> getPGNCommentsBefore(int moveIndex)
      Returns:
      the PGN Comments before the move
    • getPGNTagValue

      public String getPGNTagValue(PGNTag pgnTag)
      Returns:
      the value of the PGN tag
    • setPGNTag

      public void setPGNTag(PGNTag pgnTag, String value)
      Sets the value of the PGN tag