ChessBrowser
Extension to create interactive chess boards
Loading...
Searching...
No Matches
MediaWiki\Extension\ChessBrowser\PgnParser\MoveBuilder Class Reference

Public Member Functions

 addMoves ( $moveString)
 Add moves, separated by spaces.
 
 addCommentBeforeFirstMove ( $comment)
 Insert a comment before the first move.
 
 addComment ( $comment)
 Insert a comment at the current location.
 
 startVariation ()
 Begin a variation at the current index.
 
 endVariation ()
 End a variation.
 
 getMoves ()
 Get the moves.
 

Member Function Documentation

◆ addComment()

MediaWiki\Extension\ChessBrowser\PgnParser\MoveBuilder::addComment ( $comment)

Insert a comment at the current location.

Parameters
string$comment

◆ addCommentBeforeFirstMove()

MediaWiki\Extension\ChessBrowser\PgnParser\MoveBuilder::addCommentBeforeFirstMove ( $comment)

Insert a comment before the first move.

Parameters
string$comment

◆ addMoves()

MediaWiki\Extension\ChessBrowser\PgnParser\MoveBuilder::addMoves ( $moveString)

Add moves, separated by spaces.

Parameters
string$moveString

◆ getMoves()

MediaWiki\Extension\ChessBrowser\PgnParser\MoveBuilder::getMoves ( )

Get the moves.

Returns
array

The documentation for this class was generated from the following file: