Esempio n. 1
0
        public static SpathiEluderPrimary Create()
        {
            if (!initialized)
            {
                Initialize();
            }
            SpathiEluderPrimary rv = new SpathiEluderPrimary();

            rv.aIInfo = null;
            return(rv);
        }
Esempio n. 2
0
        static void Initialize()
        {
            initialized = true;

            InitShape();
            DefaultMovementInfo = new ShipMovementInfo(
                new Bounded <float>(TimeWarp.AngularAcceleration),
                new Bounded <float>(TimeWarp.ScaleTurning(1)),
                new Bounded <float>(TimeWarp.ScaleAcceleration(12, 1)),
                new Bounded <float>(TimeWarp.ScaleVelocity(48)));
            DefaultState = new ShipState(new Bounded <float>(30),
                                         new Bounded <float>(10),
                                         new Bounded <float>(0),
                                         new Bounded <float>(TimeWarp.RechargeRateToPerSeconds(10, 1)));

            DefaultActions.Add(SpathiEluderPrimary.Create());
            DefaultActions.Add(SpathiEluderSecondary.Create());

            DefaultControlableSounds = new ControlableSounds(null, "ShipDies");
            DefaultShipSounds        = new ShipSounds("SpathiEluderDitty");
        }