예제 #1
0
        public static Map.Map PackOfEndlessZombies(SlimDX.Direct3D9.Device device)
        {
            var m = Medium(device);
            Action <int, int> insertGrunt = null;

            insertGrunt = (int x, int y) =>
            {
                Map.Units.Grunt g;
                m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
                {
                    Position = new SlimDX.Vector3(37 + x * 1, 37 + y * 1, 0),
                });
                g.ClearAbilities();
                g.Killed += new Client.Game.Map.Destructible.KilledEventHandler((o, e, s) =>
                {
                    insertGrunt(x, y);
                    if (!g.IsRemoved)
                    {
                        g.Remove();
                    }
                });
            };
            for (int y = 0; y < 5; y++)
            {
                for (int x = 0; x < 5; x++)
                {
                    insertGrunt(x, y);
                }
            }
            m.MainCharacter.PistolAmmo = 100;
            return(m);
        }
예제 #2
0
        public static Map.Map SingleDeadGrunt(SlimDX.Direct3D9.Device device)
        {
            var m = Tiny(device);

            Map.Units.Grunt g;
            m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
            {
                Position = new SlimDX.Vector3(2, 8, 0),
                State    = Map.UnitState.Dead
            });
            return(m);
        }
예제 #3
0
        public static Map.Map SingleInactiveGrunt(SlimDX.Direct3D9.Device device)
        {
            var m = Tiny(device);

            Map.Units.Grunt g;
            m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
            {
                Position = new SlimDX.Vector3(2, 8, 0),
            });
            g.ClearAbilities();
            return(m);
        }
예제 #4
0
        public static Map.Map PackOfImmobileZombies(SlimDX.Direct3D9.Device device)
        {
            var m = Medium(device);

            for (int y = 0; y < 5; y++)
            {
                for (int x = 0; x < 5; x++)
                {
                    Map.Units.Grunt g;
                    m.DynamicsRoot.AddChild(g = new Map.Units.Grunt {
                        Position = new SlimDX.Vector3(37 + x * 1, 37 + y * 1, 0)
                    });
                    g.ClearAbilities();
                }
            }
            m.MainCharacter.PistolAmmo = 100;
            return(m);
        }
예제 #5
0
 public static Map.Map SingleRaisableGrunt(SlimDX.Direct3D9.Device device)
 {
     var m = Tiny(device);
     Map.Units.Grunt g;
     m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
     {
         Position = new SlimDX.Vector3(2, 8, 0),
         State = Map.UnitState.RaisableCorpse
     });
     return m;
 }
예제 #6
0
 public static Map.Map SingleInactiveGrunt(SlimDX.Direct3D9.Device device)
 {
     var m = Tiny(device);
     Map.Units.Grunt g;
     m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
     {
         Position = new SlimDX.Vector3(2, 8, 0),
     });
     g.ClearAbilities();
     return m;
 }
예제 #7
0
 public static Map.Map PackOfStonesZombies(SlimDX.Direct3D9.Device device)
 {
     var m = Medium(device);
     for (int y = 0; y < 5; y++)
         for (int x = 0; x < 5; x++)
         {
             Map.Units.Grunt g;
             m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
             {
                 Position = new SlimDX.Vector3(37 + x * 1, 37 + y * 1, 0),
                 HitPoints = int.MaxValue,
                 MaxHitPoints = int.MaxValue
             });
             g.ClearAbilities();
         }
     m.MainCharacter.PistolAmmo = 100;
     return m;
 }
예제 #8
0
 public static Map.Map PackOfEndlessZombies(SlimDX.Direct3D9.Device device)
 {
     var m = Medium(device);
     Action<int,int> insertGrunt = null;
     insertGrunt = (int x, int y) =>
     {
         Map.Units.Grunt g;
         m.DynamicsRoot.AddChild(g = new Map.Units.Grunt
         {
             Position = new SlimDX.Vector3(37 + x * 1, 37 + y * 1, 0),
         });
         g.ClearAbilities();
         g.Killed += new Client.Game.Map.Destructible.KilledEventHandler((o, e, s) =>
         {
             insertGrunt(x, y);
             if (!g.IsRemoved)
                 g.Remove();
         });
     };
     for (int y = 0; y < 5; y++)
         for (int x = 0; x < 5; x++)
         {
             insertGrunt(x, y);
         }
     m.MainCharacter.PistolAmmo = 100;
     return m;
 }