コード例 #1
0
        public BoardRenderer(IBoardRendererState state, IEditorView editorView)
        {
            state.ThrowIfNull("state");
            editorView.ThrowIfNull("editorView");

            _state = state;
            _editorView = editorView;
        }
コード例 #2
0
        public EraserAction(IBoardRendererState boardRendererState, IEraserRendererState eraserRendererState)
        {
            boardRendererState.ThrowIfNull("boardRendererState");
            eraserRendererState.ThrowIfNull("eraserRendererState");

            _boardRendererState = boardRendererState;
            _eraserRendererState = eraserRendererState;
        }
コード例 #3
0
        public PencilAction(IBoardRendererState boardRendererState, IPencilRendererState pencilRendererState)
        {
            boardRendererState.ThrowIfNull("boardRendererState");
            pencilRendererState.ThrowIfNull("pencilRendererState");

            _boardRendererState = boardRendererState;
            _pencilRendererState = pencilRendererState;
        }
コード例 #4
0
        public PencilAction(IBoardRendererState boardRendererState, IPencilRendererState pencilRendererState)
        {
            boardRendererState.ThrowIfNull("boardRendererState");
            pencilRendererState.ThrowIfNull("pencilRendererState");

            _boardRendererState  = boardRendererState;
            _pencilRendererState = pencilRendererState;
        }
コード例 #5
0
        public BoardRenderer(IBoardRendererState state, IEditorView editorView)
        {
            state.ThrowIfNull("state");
            editorView.ThrowIfNull("editorView");

            _state      = state;
            _editorView = editorView;
        }
コード例 #6
0
        public EraserAction(IBoardRendererState boardRendererState, IEraserRendererState eraserRendererState)
        {
            boardRendererState.ThrowIfNull("boardRendererState");
            eraserRendererState.ThrowIfNull("eraserRendererState");

            _boardRendererState  = boardRendererState;
            _eraserRendererState = eraserRendererState;
        }
コード例 #7
0
        public TextAdventureEditorGame(
            GraphicsDevice graphicsDevice,
            IEditorView editorView,
            IBoardRendererState boardRendererState,
            IPencilRendererState pencilRendererState,
            IEraserRendererState eraserRendererState)
            : base(graphicsDevice, new ContentDirectoryContentManagerProvider())
        {
            editorView.ThrowIfNull("editorView");
            boardRendererState.ThrowIfNull("boardRendererState");
            pencilRendererState.ThrowIfNull("pencilRendererState");
            eraserRendererState.ThrowIfNull("eraserRendererState");

            _editorView          = editorView;
            _boardRendererState  = boardRendererState;
            _pencilRendererState = pencilRendererState;
            _eraserRendererState = eraserRendererState;
        }
コード例 #8
0
        public TextAdventureEditorGame(
			GraphicsDevice graphicsDevice,
			IEditorView editorView,
			IBoardRendererState boardRendererState,
			IPencilRendererState pencilRendererState,
			IEraserRendererState eraserRendererState)
            : base(graphicsDevice, new ContentDirectoryContentManagerProvider())
        {
            editorView.ThrowIfNull("editorView");
            boardRendererState.ThrowIfNull("boardRendererState");
            pencilRendererState.ThrowIfNull("pencilRendererState");
            eraserRendererState.ThrowIfNull("eraserRendererState");

            _editorView = editorView;
            _boardRendererState = boardRendererState;
            _pencilRendererState = pencilRendererState;
            _eraserRendererState = eraserRendererState;
        }
コード例 #9
0
        public BoardRenderer(IBoardRendererState state)
        {
            state.ThrowIfNull("state");

            _state = state;
        }
コード例 #10
0
        public BoardRenderer(IBoardRendererState state)
        {
            state.ThrowIfNull("state");

            _state = state;
        }