import { StatisticsModel } from './statisticsmodel' ; import { ZeroStatisticsModel } from './zerostatisticsmodel' ; export class DelegatingStatisticsModel implements StatisticsModel { private delegate_ : StatisticsModel ; constructor ( ) { this . delegate_ = new ZeroStatisticsModel ( ) ; } setDelegate ( delegate ) { this . delegate_ = delegate ; } getRepertoireFinishLineCount ( ) { return this . delegate_ . getRepertoireFinishLineCount ( ) ; } getRepertoireRightMoveCount ( ) { return this . delegate_ . getRepertoireRightMoveCount ( ) ; } getRepertoireWrongMoveCount ( ) { return this . delegate_ . getRepertoireWrongMoveCount ( ) ; } getRightMoveCount ( pgn ) { return this . delegate_ . getRightMoveCount ( pgn ) ; } getWrongMoveCount ( pgn ) { return this . delegate_ . getWrongMoveCount ( pgn ) ; } }