コード例 #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);
        }