public Cheatcodes() { //Fill cheats //Keyboard //**************************************************************************************************** keyboardCheats = new Dictionary <Keys[], Cheat>(); //Invincibility Keys[] invincibleKeys = new Keys[] { Keys.I, Keys.D, Keys.D, Keys.A, Keys.D }; keyboardCheats.Add(invincibleKeys, Cheat.Invincible); //Maximum power Keys[] maxpowerKeys = new Keys[] { Keys.N, Keys.A, Keys.B, Keys.A, Keys.Z, Keys.T, Keys.A, Keys.G }; keyboardCheats.Add(maxpowerKeys, Cheat.MaxPower); //Kawaii Keys[] kawaiKeys = new Keys[] { Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O }; keyboardCheats.Add(kawaiKeys, Cheat.Kawaii); //Giant mode Keys[] giantKeys = new Keys[] { Keys.L, Keys.O, Keys.V, Keys.E }; keyboardCheats.Add(giantKeys, Cheat.Gulliver); //Unlock map Keys[] mapKeys = new Keys[] { Keys.S, Keys.E, Keys.M, Keys.O, Keys.U, Keys.L, Keys.E }; keyboardCheats.Add(mapKeys, Cheat.UnlockMap); //Gamepad //**************************************************************************************************** padCheats = new Dictionary <GamePadButtonsList[], Cheat>(); //Invincibility GamePadButtonsList[] invincibleButtons = new GamePadButtonsList[] { GamePadButtonsList.Up, GamePadButtonsList.Down, GamePadButtonsList.X, GamePadButtonsList.A, GamePadButtonsList.X, GamePadButtonsList.A }; padCheats.Add(invincibleButtons, Cheat.Invincible); //Maximum power GamePadButtonsList[] maxpowerButtons = new GamePadButtonsList[] { GamePadButtonsList.Down, GamePadButtonsList.Up, GamePadButtonsList.Y, GamePadButtonsList.B, GamePadButtonsList.Y, GamePadButtonsList.B }; padCheats.Add(maxpowerButtons, Cheat.MaxPower); //Kawaii GamePadButtonsList[] kawaiButtons = new GamePadButtonsList[] { GamePadButtonsList.Left, GamePadButtonsList.Left, GamePadButtonsList.Left, GamePadButtonsList.Right }; padCheats.Add(kawaiButtons, Cheat.Kawaii); //Giant mode GamePadButtonsList[] giantButtons = new GamePadButtonsList[] { GamePadButtonsList.A, GamePadButtonsList.A, GamePadButtonsList.B, GamePadButtonsList.B, GamePadButtonsList.A, GamePadButtonsList.A, GamePadButtonsList.Y }; padCheats.Add(giantButtons, Cheat.Gulliver); //Unlock map GamePadButtonsList[] mapButtons = new GamePadButtonsList[] { GamePadButtonsList.Y, GamePadButtonsList.A, GamePadButtonsList.B, GamePadButtonsList.X, GamePadButtonsList.Down }; padCheats.Add(mapButtons, Cheat.UnlockMap); IsInvincible = false; HasMaxPower = false; IsKawaii = false; IsGiantMode = false; Initialize(); }
public Cheatcodes() { //Fill cheats //Keyboard //**************************************************************************************************** keyboardCheats = new Dictionary<Keys[], Cheat>(); //Invincibility Keys[] invincibleKeys = new Keys[] { Keys.I, Keys.D, Keys.D, Keys.A, Keys.D }; keyboardCheats.Add(invincibleKeys, Cheat.Invincible); //Maximum power Keys[] maxpowerKeys = new Keys[] { Keys.N, Keys.A, Keys.B, Keys.A, Keys.Z, Keys.T, Keys.A, Keys.G }; keyboardCheats.Add(maxpowerKeys, Cheat.MaxPower); //Kawaii Keys[] kawaiKeys = new Keys[] { Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O, Keys.O }; keyboardCheats.Add(kawaiKeys, Cheat.Kawaii); //Giant mode Keys[] giantKeys = new Keys[] { Keys.L, Keys.O, Keys.V, Keys.E }; keyboardCheats.Add(giantKeys, Cheat.Gulliver); //Unlock map Keys[] mapKeys = new Keys[] { Keys.S, Keys.E, Keys.M, Keys.O, Keys.U, Keys.L, Keys.E }; keyboardCheats.Add(mapKeys, Cheat.UnlockMap); //Gamepad //**************************************************************************************************** padCheats = new Dictionary<GamePadButtonsList[], Cheat>(); //Invincibility GamePadButtonsList[] invincibleButtons = new GamePadButtonsList[] { GamePadButtonsList.Up, GamePadButtonsList.Down, GamePadButtonsList.X, GamePadButtonsList.A, GamePadButtonsList.X, GamePadButtonsList.A }; padCheats.Add(invincibleButtons, Cheat.Invincible); //Maximum power GamePadButtonsList[] maxpowerButtons = new GamePadButtonsList[] { GamePadButtonsList.Down, GamePadButtonsList.Up, GamePadButtonsList.Y, GamePadButtonsList.B, GamePadButtonsList.Y, GamePadButtonsList.B }; padCheats.Add(maxpowerButtons, Cheat.MaxPower); //Kawaii GamePadButtonsList[] kawaiButtons = new GamePadButtonsList[] { GamePadButtonsList.Left, GamePadButtonsList.Left, GamePadButtonsList.Left, GamePadButtonsList.Right }; padCheats.Add(kawaiButtons, Cheat.Kawaii); //Giant mode GamePadButtonsList[] giantButtons = new GamePadButtonsList[] { GamePadButtonsList.A, GamePadButtonsList.A, GamePadButtonsList.B, GamePadButtonsList.B, GamePadButtonsList.A, GamePadButtonsList.A, GamePadButtonsList.Y }; padCheats.Add(giantButtons, Cheat.Gulliver); //Unlock map GamePadButtonsList[] mapButtons = new GamePadButtonsList[] { GamePadButtonsList.Y, GamePadButtonsList.A, GamePadButtonsList.B, GamePadButtonsList.X, GamePadButtonsList.Down }; padCheats.Add(mapButtons, Cheat.UnlockMap); IsInvincible = false; HasMaxPower = false; IsKawaii = false; IsGiantMode = false; Initialize(); }