Exemplo n.º 1
0
                    public static void Top_T3()
                    {
                        try
                        {
                            int index = Manage.Rand.Next(1, Manage.Sounds.StanleyParable.Structures.Ally.Top_T3);
                            switch (index)
                            {
                            case 1:
                                SoundPlayer player1 = new SoundPlayer(Resource.stanleyparable_structures_top_tower_1);
                                player1.Play();
                                player1.DisposePlayer(Resource.stanleyparable_structures_top_tower_1);
                                break;

                            case 2:
                                SoundPlayer player2 = new SoundPlayer(Resource.stanleyparable_structures_top_tower_2);
                                player2.Play();
                                player2.DisposePlayer(Resource.stanleyparable_structures_top_tower_2);
                                break;

                            case 3:
                                SoundPlayer player3 = new SoundPlayer(Resource.stanleyparable_structures_top_tower_2);
                                player3.Play();
                                player3.DisposePlayer(Resource.stanleyparable_structures_top_tower_2);
                                break;
                            }
                        }
                        catch (Exception)
                        {
                            // ignored
                        }
                    }
Exemplo n.º 2
0
                public static void Welcome()
                {
                    try
                    {
                        int index = Manage.Rand.Next(1, Manage.Sounds.Portal2.Notify.Welcome);
                        switch (index)
                        {
                        case 1:
                            SoundPlayer player1 = new SoundPlayer(Resource.glados_welcome_1);
                            player1.Play();
                            player1.DisposePlayer(Resource.glados_welcome_1);
                            break;

                        case 2:
                            SoundPlayer player2 = new SoundPlayer(Resource.glados_welcome_2);
                            player2.Play();
                            player2.DisposePlayer(Resource.glados_welcome_2);
                            break;

                        case 3:
                            SoundPlayer player3 = new SoundPlayer(Resource.glados_welcome_3);
                            player3.Play();
                            player3.DisposePlayer(Resource.glados_welcome_3);
                            break;

                        case 4:
                            SoundPlayer player4 = new SoundPlayer(Resource.glados_welcome_4);
                            player4.Play();
                            player4.DisposePlayer(Resource.glados_welcome_4);
                            break;

                        case 5:
                            SoundPlayer player5 = new SoundPlayer(Resource.glados_welcome_5);
                            player5.Play();
                            player5.DisposePlayer(Resource.glados_welcome_5);
                            break;

                        case 6:
                            SoundPlayer player6 = new SoundPlayer(Resource.glados_welcome_6);
                            player6.Play();
                            player6.DisposePlayer(Resource.glados_welcome_6);
                            break;

                        case 7:
                            SoundPlayer player7 = new SoundPlayer(Resource.glados_welcome_7);
                            player7.Play();
                            player7.DisposePlayer(Resource.glados_welcome_7);
                            break;
                        }
                    }
                    catch (Exception)
                    {
                        // ignored
                    }
                }
Exemplo n.º 3
0
 public static void Nexus_Tower()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_structures_mid_tower);
         player.Play();
         player.DisposePlayer(Resource.glados_structures_mid_tower);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 4
0
 public static void Bot_Inhib()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_structures_bot_inhib);
         player.Play();
         player.DisposePlayer(Resource.glados_structures_bot_inhib);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 5
0
 public static void Top_T3()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_structures_top_tower_enemy);
         player.Play();
         player.DisposePlayer(Resource.glados_structures_top_tower_enemy);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 6
0
 public static void MinionSpawn()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_notify_minion_spawn);
         player.Play();
         player.DisposePlayer(Resource.glados_notify_minion_spawn);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 7
0
 public static void Win()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_notify_victory);
         player.Play();
         player.DisposePlayer(Resource.glados_notify_victory);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 8
0
 public static void AllyPenta()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_kills_penta);
         player.Play();
         player.DisposePlayer(Resource.glados_kills_penta);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 9
0
 public static void AllyKill()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_notify_enemy_death_1);
         player.Play();
         player.DisposePlayer(Resource.glados_notify_enemy_death_1);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 10
0
 public static void AllyFirstblood()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_notify_first_blood);
         player.Play();
         player.DisposePlayer(Resource.glados_notify_first_blood);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 11
0
 public static void EnemyQuadra()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.glados_kills_quadra);
         player.Play();
         player.DisposePlayer(Resource.glados_kills_quadra);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 12
0
 public static void Mid_Inhib()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.stanleyparable_structures_mid_inhib_enemy);
         player.Play();
         player.DisposePlayer(Resource.stanleyparable_structures_mid_inhib_enemy);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 13
0
 public static void Defeat()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.stanleyparable_notify_defeat);
         player.Play();
         player.DisposePlayer(Resource.stanleyparable_notify_defeat);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 14
0
 public static void EnemyFirstblood()
 {
     try
     {
         SoundPlayer player = new SoundPlayer(Resource.stanleyparable_notify_first_blood);
         player.Play();
         player.DisposePlayer(Resource.stanleyparable_notify_first_blood);
     }
     catch (Exception)
     {
         // ignored
     }
 }
Exemplo n.º 15
0
        public static void Game_OnInput(GameInputEventArgs args)
        {
            if (args.Input.StartsWith("."))
            {
                args.Process = false;
            }

            /*
             *  .kill TEAM
             *  .double TEAM
             *  .triple TEAM
             *  .quadra TEAM
             *  .penta TEAM
             *  TEAM can be 0 == enemy, 1 == ally
             *  .welcome
             *  .minions
             *  .win
             *  .loss
             *  .tower TEAM LANE TIER
             *  TEAM can be 0 == enemy, 1 == ally
             *  LANE can be top/mid/bot
             *  TIER can be 1,2,3, 4 == inhibs
             */
            switch (args.Input)
            {
            case ".degrec":
                SoundPlayer degreced = new SoundPlayer(Resource.Degrec);
                degreced.Play();
                degreced.DisposePlayer(Resource.Degrec);
                break;

            case ".fb 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyFirstblood);
                break;

            case ".kill 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyKill);
                break;

            case ".double 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyDouble);
                break;

            case ".triple 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyTriple);
                break;

            case ".quadra 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyQuadra);
                break;

            case ".penta 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyPenta);
                break;

            case ".fb 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyFirstblood);
                break;

            case ".kill 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyKill);
                break;

            case ".double 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyDouble);
                break;

            case ".triple 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyTriple);
                break;

            case ".quadra 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyQuadra);
                break;

            case ".penta 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyPenta);
                break;

            case ".welcome":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Welcome);
                break;

            case ".minions":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.MinionSpawn);
                break;

            case ".win":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Win);
                break;

            case ".loss":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Defeat);
                break;

            case ".tower 0 top 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T1);
                break;

            case ".tower 0 top 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T2);
                break;

            case ".tower 0 top 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T3);
                break;

            case ".tower 0 top 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_InHib);
                break;

            case ".tower 0 mid 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T1);
                break;

            case ".tower 0 mid 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T2);
                break;

            case ".tower 0 mid 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T3);
                break;

            case ".tower 0 mid 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_InHib);
                break;

            case ".tower 0 bot 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T1);
                break;

            case ".tower 0 bot 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T2);
                break;

            case ".tower 0 bot 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T3);
                break;

            case ".tower 0 bot 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_InHib);
                break;

            case ".tower 1 top 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T1);
                break;

            case ".tower 1 top 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T2);
                break;

            case ".tower 1 top 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T3);
                break;

            case ".tower 1 top 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_InHib);
                break;

            case ".tower 1 mid 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T1);
                break;

            case ".tower 1 mid 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T2);
                break;

            case ".tower 1 mid 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T3);
                break;

            case ".tower 1 mid 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_InHib);
                break;

            case ".tower 1 bot 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T1);
                break;

            case ".tower 1 bot 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T2);
                break;

            case ".tower 1 bot 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T3);
                break;

            case ".tower 1 bot 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_InHib);
                break;

            case ".tower 0 5":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyNexus_Turrets);
                break;

            case ".tower 1 5":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyNexus_Turrets);
                break;
            }
        }