public BoardRenderer(IBoardRendererState state, IEditorView editorView) { state.ThrowIfNull("state"); editorView.ThrowIfNull("editorView"); _state = state; _editorView = editorView; }
public EraserAction(IBoardRendererState boardRendererState, IEraserRendererState eraserRendererState) { boardRendererState.ThrowIfNull("boardRendererState"); eraserRendererState.ThrowIfNull("eraserRendererState"); _boardRendererState = boardRendererState; _eraserRendererState = eraserRendererState; }
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 BoardRenderer(IBoardRendererState state) { state.ThrowIfNull("state"); _state = state; }