예제 #1
0
        public void NotifyUIEvent(object sender, UIEventArgs uiEventArgs)
        {
            //This is for the buttons
            Console.WriteLine(uiEventArgs.Text + " selected!");
            Character newCharacter;

            switch (uiEventArgs.Text)
            {
            case "gwt":
                newCharacter = new Character("G.W. Tiger", 100, 250);
                Weapon autoLoader = new Weapon("BatChat Autoloader", 10, 85, ProjectileType.Shell);
                autoLoader.IsAutoloader            = true;
                autoLoader.AutoloaderClip          = 5;
                autoLoader.ProjectilesFiredPerTurn = 3;
                autoLoader.BaseDamage    = 80;
                autoLoader.UsesSatellite = true;
                newCharacter.AddWeapon(autoLoader);

                _players[currentIndexPlayer - 1].Character = newCharacter;
                Console.WriteLine("GTW Selected!");
                break;

            case "obj":
                _players[currentIndexPlayer - 1].Character = new Character("Object 15X", 100, 100);
                Console.WriteLine("Obj Selected!");
                break;

            case "int":
                _players[currentIndexPlayer - 1].Character = new Character("Innocentia", 100, 100);
                Console.WriteLine("int Selected!");
                break;
            }



            _characterSelected = true;
        }
예제 #2
0
        public void CharacterButtonPressed(object sender, UIEventArgs uiEventArgs)
        {
            Console.WriteLine(uiEventArgs.Text + " selected!");
            Character newCharacter;
            Weapon    startingWeapon;

            //make this into a json thing later
            if (_playerIndex < A3RData.NumberOfPlayers)
            {
                switch (uiEventArgs.Text)
                {
                case "gwt":
                    newCharacter = new Character("G.W. Tiger", 150, 100, A3RData.Players[_playerIndex]);

                    startingWeapon                 = new Weapon("G.W. 150mm/78 Morser", -20, 90, ProjectileType.Shell);
                    startingWeapon.BaseDamage      = 100;
                    startingWeapon.AimDispersion   = 3.1f;
                    startingWeapon.AutoloaderClip  = 2;
                    startingWeapon.WeaponMaxCharge = 50;
                    startingWeapon.DamageRad       = 50;
                    startingWeapon.Rarity          = 1;
                    startingWeapon.ShortDesc       = "Extensively field-tested, a reliable and sturdy weapon with no equal.";
                    startingWeapon.LongDesc        = "Starting Weapon for G.W. Tiger";
                    startingWeapon.Cost            = 500;

                    newCharacter.AddWeapon(startingWeapon);

                    A3RData.Players[_playerIndex].Character = newCharacter;
                    break;

                case "obj":
                    newCharacter = new Character("Object 15X", 65, 175, A3RData.Players[_playerIndex]);

                    startingWeapon                 = new Weapon("190mm D-76ST 15X", 0, 45, ProjectileType.Shell);
                    startingWeapon.BaseDamage      = 200;
                    startingWeapon.AimDispersion   = 0.9f;
                    startingWeapon.WeaponMaxCharge = 40;
                    startingWeapon.DamageRad       = 75;
                    startingWeapon.Rarity          = 1;
                    startingWeapon.ShortDesc       = "An experimental adaption from CLS-T developed during the last Neko Wars.";
                    startingWeapon.LongDesc        = "Starting Weapon for Object 15X";
                    startingWeapon.Cost            = 500;

                    newCharacter.AddWeapon(startingWeapon);

                    A3RData.Players[_playerIndex].Character = newCharacter;
                    break;

                case "int":
                    newCharacter = new Character("Innocentia", 130, 130, A3RData.Players[_playerIndex]);

                    startingWeapon            = new Weapon("120mm Kati-S / Sat. Enabled.", 0, 45, ProjectileType.Shell);
                    startingWeapon.BaseDamage = 80;
                    startingWeapon.ProjectilesFiredPerTurn = 2;
                    startingWeapon.AimDispersion           = 2.1f;
                    startingWeapon.WeaponMaxCharge         = 70;
                    startingWeapon.DamageRad     = 80;
                    startingWeapon.UsesSatellite = true;
                    startingWeapon.Rarity        = 1;
                    startingWeapon.ShortDesc     = "An early prototype that utilised the MAIA Satellite System.";
                    startingWeapon.LongDesc      = "Starting Weapon for Innocentia";
                    startingWeapon.Cost          = 500;

                    newCharacter.AddWeapon(startingWeapon);

                    A3RData.Players[_playerIndex].Character = newCharacter;
                    break;
                }
            }

            _playerIndex++;

            if (_playerIndex > A3RData.NumberOfPlayers - 1)
            {
                EndSelectStage(PlayerSelect.PlayerCharacters);
            }
        }