Пример #1
0
        public static void FireFrom(Fleet fleet, Action <IShipWeapon> configure = null)
        {
            var volley = new ShipWeaponVolley <T>
            {
                Configure = configure,
                FiredFrom = fleet,
                GroupType = GroupTypes.VolleyBullet,
                OwnerID   = fleet.ID,
                ZIndex    = 150,
                Color     = fleet.Color
            };

            for (var i = 0; i < fleet.Ships.Count; i++)
            {
                volley.FiringSequence.Add(
                    new Tuple <Ship, long>(
                        fleet.Ships[i],
                        fleet.World.Time + i * fleet.World.Hook.FiringSequenceDelay
                        )
                    );
            }

            volley.Init(fleet.World);
        }
Пример #2
0
 public void FireFrom(Fleet fleet)
 {
     ShipWeaponVolley <T> .FireFrom(fleet);
 }