Beispiel #1
0
 // Clont den Gegner
 public Enemy Clone()
 {
     Enemy c = new Enemy(LocationBehavior.Clone(), Renderer.Clone(), ratOfFire, AttackDistance, SightiningDistance, MaxHealth, Speed, Health, TypOfEnemy);
     c.Damage = Damage;
     return c;
 }
Beispiel #2
0
 public Enemy(Enemy e, Vector2 position)
     : this(e.LocationBehavior, e.Renderer, e.ratOfFire, e.AttackDistance, e.SightiningDistance, e.MaxHealth, e.Speed, e.Health, e.TypOfEnemy)
 {
     LocationBehavior.Position = position;
 }
Beispiel #3
0
        // ********************************************************************************
        // Enemies laden
        public static void Load()
        {
            // Dic init
            Enemy.DefaultEnemies = new Dictionary<EEnemyType, Enemy>();

            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_Krabbler_Move"), 1, 100, 400, 15, 120, 15, EEnemyType.E1);
                e.Damage = 1F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_Schleimer_Move"), 1, 140, 400, 20, 70, 20, EEnemyType.E2);
                e.Damage = 3F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_StachelKrabbe_Move"), 1, 75, 400, 50, 100, 50, EEnemyType.E3);
                e.Damage = 5F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_Krabbler_Move"), 1, 100, 400, 15, 120, 15, EEnemyType.E4);
                e.Damage = 1F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_RoterDrache_Move"), 1, 160, 400, 300, 100, 30, EEnemyType.E5);
                e.Damage = 2F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
            {
                Enemy e = new Enemy(new MapLocation(new Vector2(0, 0)), LoadedRenderer.Get("A_Hellboy_Move"), 1, 200, 400, 50, 120, 50, EEnemyType.E6);
                e.Damage = 7F;
                e.LocationSizing();

                Enemy.DefaultEnemies.Add(e.TypOfEnemy, e);
            }
        }