public PencilRenderer(IPencilRendererState state, IEditorView editorView)
        {
            state.ThrowIfNull("state");
            editorView.ThrowIfNull("editorView");

            _state = state;
            _editorView = editorView;
        }
        public PencilRenderer(IPencilRendererState state, IEditorView editorView)
        {
            state.ThrowIfNull("state");
            editorView.ThrowIfNull("editorView");

            _state      = state;
            _editorView = editorView;
        }
        public PencilAction(IBoardRendererState boardRendererState, IPencilRendererState pencilRendererState)
        {
            boardRendererState.ThrowIfNull("boardRendererState");
            pencilRendererState.ThrowIfNull("pencilRendererState");

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

            _boardRendererState  = boardRendererState;
            _pencilRendererState = pencilRendererState;
        }
        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;
        }
        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;
        }