public DoodadViewFactory(IInputManager input, IKeyboardInputManager keyInput, Random random, Level level) { this.input = input; this.level = level; this.random = random; this.keyInput = keyInput; }
public PlayerControlledTankView( PlayerControlledTank tank, IInputManager input, IKeyboardInputManager keyInput, Random random) : base(tank, random) { this.tank = tank; this.input = input; this.input.MouseDown += this.OnMouseDown; this.input.MouseMoved += this.OnMouseMoved; this.keyInput = keyInput; this.keyInput.KeyDown += this.OnKeyDown; }