示例#1
0
            public XWing() : base()
            {
                Type = "X-Wing";
                IconicPilots.Add(Faction.Rebel, typeof(WedgeAntilles));

                ManeuversImageUrl = "https://vignette1.wikia.nocookie.net/xwing-miniatures/images/3/3d/MR_T65-X-WING.png";

                Firepower  = 3;
                Agility    = 2;
                MaxHull    = 3;
                MaxShields = 2;

                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.Astromech);
                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.Torpedo);

                PrintedActions.Add(new TargetLockAction());

                AssignTemporaryManeuvers();
                HotacManeuverTable = new AI.XWingTable();

                factions.Add(Faction.Rebel);
                faction = Faction.Rebel;

                SkinName = "Red";

                CurrentWingsPosition = WingsPositions.Opened;

                SoundShotsPath = "XWing-Laser";
                ShotsCount     = 3;

                for (int i = 1; i < 4; i++)
                {
                    SoundFlyPaths.Add("XWing-Fly" + i);
                }
            }
示例#2
0
文件: UWing.cs 项目: xNyer/FlyCasual
            public UWing() : base()
            {
                Type = FullType = "U-Wing";
                IconicPilots.Add(Faction.Rebel, typeof(BlueSquadronPathfinder));
                ShipBaseSize = BaseSize.Large;

                ManeuversImageUrl = "https://vignette.wikia.nocookie.net/xwing-miniatures/images/c/c5/MR_U-WING.png";

                ShipIconLetter = 'u';

                Firepower  = 3;
                Agility    = 1;
                MaxHull    = 4;
                MaxShields = 4;

                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.System);
                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.Torpedo);
                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.Crew);
                PrintedUpgradeIcons.Add(Upgrade.UpgradeType.Crew);

                ActionBar.AddPrintedAction(new TargetLockAction());

                AssignTemporaryManeuvers();
                HotacManeuverTable = new AI.UWingTable();

                factions.Add(Faction.Rebel);
                faction = Faction.Rebel;

                SkinName = "Blue Squadron";

                CurrentWingsPosition = WingsPositions.Closed;

                SoundShotsPath = "Falcon-Fire";
                ShotsCount     = 3;

                for (int i = 1; i < 4; i++)
                {
                    SoundFlyPaths.Add("Falcon-Fly" + i);
                }
            }
示例#3
0
        public UWing() : base()
        {
            ShipInfo = new ShipCardInfo
                       (
                "U-wing",
                (ModsManager.Mods[typeof(UWingSmallBaseMod)].IsOn) ? BaseSize.Small : BaseSize.Large,
                Faction.Rebel,
                new ShipArcsInfo(ArcType.Front, 3), 1, 4, 4,
                new ShipActionsInfo(
                    new ActionInfo(typeof(FocusAction)),
                    new ActionInfo(typeof(TargetLockAction))
                    ),
                new ShipUpgradesInfo(
                    UpgradeType.Title,
                    UpgradeType.Modification,
                    UpgradeType.System,
                    UpgradeType.Crew,
                    UpgradeType.Crew
                    ),
                icon: 'u',
                description: "The UT-60D U-wing starfighter/support craft also known as the UT-60D, or U-wing, was a transport/gunship model manufactured by Incom Corporation and used by the Alliance to Restore the Republic during the Galactic Civil War. Used to drop troops into battle, and provide cover fire for them, U-wings were pivotal in transport and protection of the Rebel Alliance's ground forces during the Battle of Scarif."
                       );

            IconicPilots = new Dictionary <Faction, System.Type> {
                { Faction.Rebel, typeof(BlueSquadronPathfinder) }
            };

            ModelInfo = new ShipModelInfo(
                "U-wing",
                "Blue Squadron",
                new Vector3(-3.25f, 7.16f, 5.55f),
                2f,
                wingsPositions: WingsPositions.Closed
                );

            DialInfo = new ShipDialInfo(
                new ManeuverInfo(ManeuverSpeed.Speed0, ManeuverDirection.Stationary, ManeuverBearing.Stationary, MovementComplexity.Complex),

                new ManeuverInfo(ManeuverSpeed.Speed1, ManeuverDirection.Left, ManeuverBearing.Bank, MovementComplexity.Easy),
                new ManeuverInfo(ManeuverSpeed.Speed1, ManeuverDirection.Forward, ManeuverBearing.Straight, MovementComplexity.Easy),
                new ManeuverInfo(ManeuverSpeed.Speed1, ManeuverDirection.Right, ManeuverBearing.Bank, MovementComplexity.Easy),

                new ManeuverInfo(ManeuverSpeed.Speed2, ManeuverDirection.Left, ManeuverBearing.Turn, MovementComplexity.Normal),
                new ManeuverInfo(ManeuverSpeed.Speed2, ManeuverDirection.Left, ManeuverBearing.Bank, MovementComplexity.Easy),
                new ManeuverInfo(ManeuverSpeed.Speed2, ManeuverDirection.Forward, ManeuverBearing.Straight, MovementComplexity.Easy),
                new ManeuverInfo(ManeuverSpeed.Speed2, ManeuverDirection.Right, ManeuverBearing.Bank, MovementComplexity.Easy),
                new ManeuverInfo(ManeuverSpeed.Speed2, ManeuverDirection.Right, ManeuverBearing.Turn, MovementComplexity.Normal),

                new ManeuverInfo(ManeuverSpeed.Speed3, ManeuverDirection.Left, ManeuverBearing.Bank, MovementComplexity.Normal),
                new ManeuverInfo(ManeuverSpeed.Speed3, ManeuverDirection.Forward, ManeuverBearing.Straight, MovementComplexity.Normal),
                new ManeuverInfo(ManeuverSpeed.Speed3, ManeuverDirection.Right, ManeuverBearing.Bank, MovementComplexity.Normal),

                new ManeuverInfo(ManeuverSpeed.Speed4, ManeuverDirection.Forward, ManeuverBearing.Straight, MovementComplexity.Normal)
                );

            SoundInfo = new ShipSoundInfo(
                new List <string>()
            {
                "Falcon-Fly1",
                "Falcon-Fly2",
                "Falcon-Fly3"
            },
                "Falcon-Fire", 3
                );

            ManeuversImageUrl = "https://vignette.wikia.nocookie.net/xwing-miniatures/images/c/c5/MR_U-WING.png";

            HotacManeuverTable = new AI.UWingTable();

            CurrentWingsPosition = WingsPositions.Closed;
        }
示例#4
0
 public ShipModelInfo(string modelName, string skinName, Vector3 previewCameraPosition = default, float previewScale = 0, WingsPositions wingsPositions = WingsPositions.None)
 {
     ModelName             = modelName;
     SkinName              = skinName;
     PreviewCameraPosition = previewCameraPosition;
     PreviewScale          = previewScale;
 }
示例#5
0
 public ShipModelInfo(string modelName, string skinName, WingsPositions wingsPositions = WingsPositions.None)
 {
     ModelName = modelName;
     SkinName  = skinName;
 }