public EditorController(World world, InputType type, PlayerIndex playerIndex) { this.world = world; inputManager = new InputManager(type, playerIndex); keyMap = new Dictionary<WorldAction, Inputs>(); keyMap.Add(WorldAction.LoadWorld, Inputs.Load); keyMap.Add(WorldAction.SaveWorld, Inputs.Save); }
public MouseController(World world, InputType type, PlayerIndex playerIndex) { this.world = world; inputManager = new InputManager(type, playerIndex); keyMap = new Dictionary<WorldAction, Inputs>(); keyMap.Add(WorldAction.AddTile, Inputs.A); keyMap.Add(WorldAction.RemoveTile, Inputs.B); keyMap.Add(WorldAction.SelectNextTile, Inputs.Next); keyMap.Add(WorldAction.SelectPreviousTile, Inputs.Previous); }
public PlayerController(PlayerModel player, InputType type, PlayerIndex playerIndex) { this.player = player; inputManager = new InputManager(type, playerIndex); keyMap = new Dictionary<PlayerAction, Inputs>(); // Map actions to keys keyMap.Add(PlayerAction.MoveDown, Inputs.Down); keyMap.Add(PlayerAction.MoveLeft, Inputs.Left); keyMap.Add(PlayerAction.MoveRight, Inputs.Right); keyMap.Add(PlayerAction.ActionA, Inputs.A); keyMap.Add(PlayerAction.Jump, Inputs.B); }