/// <summary> /// コンストラクタ /// </summary> /// <param name="render"></param> /// <param name="info"></param> public NetworkPlayingState(IBoardViewer viewer, bool isMine) { Viewer = viewer; IsMine = isMine; deleteLineState = new NetworkDeleteLineState(); }
/// <summary> /// Enter前の初期化 /// </summary> /// <param name="render"></param> /// <param name="info"></param> public void InitializeBeforeEnter(IReadOnlyList <short> board, IBoardViewer viewer) { this.viewer = viewer; // 消す演出を作るための布石 BoardInfo.SearchWillDeleteLineNumber(willDeleteLine, board); }
/// <summary> /// Enter前の初期化 /// </summary> /// <param name="render"></param> /// <param name="info"></param> public void InitializeBeforeEnter(BoardInfo info, IBoardViewer viewer) { this.viewer = viewer; boardInfo = info; willDeleteLine.Clear(); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="render"></param> /// <param name="info"></param> public AlonePlayingState(LogicInfo info, AloneInfo ctrlInfo) : base(info) { viewer = ctrlInfo.viewer; pauseState = new AlonePauseState(input); deleteLineState = new AloneDeleteLineState(); deleteLineState.InitializeBeforeEnter(boardInfo, viewer); }