import { Color } from '../../../protocol/color' ; import { Board } from './board' ; import { NoOpBoard } from './noopboard' ; export class DelegatingBoard implements Board { private delegate_ : Board ; constructor ( ) { this . delegate_ = new NoOpBoard ( ) ; } setDelegate ( delegate ) { this . delegate_ = delegate ; } redraw ( ) { this . delegate_ . redraw ( ) ; } setStateFromChess ( chess ) { this . delegate_ . setStateFromChess ( chess ) ; } setInitialPositionImmediately ( ) { this . delegate_ . setInitialPositionImmediately ( ) ; } setOrientationForColor ( color ) { this . delegate_ . setOrientationForColor ( color ) ; } flashRightMove ( ) { this . delegate_ . flashRightMove ( ) ; } flashWrongMove ( ) { this . delegate_ . flashWrongMove ( ) ; } flashFinishLine ( ) { this . delegate_ . flashFinishLine ( ) ; } drawCircle ( square , color ) { this . delegate_ . drawCircle ( square , color ) ; } drawArrow ( from , to , color ) { this . delegate_ . drawArrow ( from , to , color ) ; } removeDrawings ( ) { this . delegate_ . removeDrawings ( ) ; } }