예제 #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="render"></param>
        /// <param name="info"></param>
        public NetworkPlayingState(IBoardViewer viewer, bool isMine)
        {
            Viewer = viewer;
            IsMine = isMine;

            deleteLineState = new NetworkDeleteLineState();
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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();
        }
예제 #4
0
        /// <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);
        }