Ejemplo n.º 1
0
 public override Enemy Copy(Vector2 position, Vector2 velocity, int mpattern, int fpattern, bool foodDrop, bool left)
 {
     Enemy enemyCopy = new EMiniboss(
         new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
         new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
         bulletText, maxBullets, scoreValue, 0.25f, position, velocity, mpattern, fpattern, foodDrop, left);
     return enemyCopy;
 }
Ejemplo n.º 2
0
        public override Enemy Copy(Vector2 position, Vector2 velocity, int mpattern, int fpattern, bool foodDrop, bool left)
        {
            Enemy enemyCopy = new EMiniboss(
                new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
                new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
                bulletText, maxBullets, scoreValue, 0.25f, position, velocity, mpattern, fpattern, foodDrop, left);

            return(enemyCopy);
        }
Ejemplo n.º 3
0
 // These copy methods are specific for each type of enemy.
 // They should be called on an enemy of a specific type (not the generic superclass).
 public override Enemy Copy()
 {
     // This returns an emeny with default settings. Good if you have a bunch of enemies
     // that don't really have different settings. Don't call this for the rock.
     Enemy enemyCopy = new EMiniboss(
         new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
         new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
         bulletText, maxBullets, scoreValue, 0.25f, new Vector2(300 - getWidth() / 2, -50f), new Vector2(0, 2f), 1, 1, false, false);
     return enemyCopy;
 }
Ejemplo n.º 4
0
        public override Enemy CopyRight()
        {
            // Enemy copy method for right movement path
            Enemy enemyCopy = new EMiniboss(
                new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
                new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
                bulletText, maxBullets, scoreValue, 0.25f, new Vector2(350 - getWidth() / 2, -50f), new Vector2(0, 2.5f), 1, 1, false, false);

            return(enemyCopy);
        }
Ejemplo n.º 5
0
        // These copy methods are specific for each type of enemy.
        // They should be called on an enemy of a specific type (not the generic superclass).

        public override Enemy Copy()
        {
            // This returns an emeny with default settings. Good if you have a bunch of enemies
            // that don't really have different settings. Don't call this for the rock.
            Enemy enemyCopy = new EMiniboss(
                new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
                new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
                bulletText, maxBullets, scoreValue, 0.25f, new Vector2(300 - getWidth() / 2, -50f), new Vector2(0, 2f), 1, 1, false, false);

            return(enemyCopy);
        }
Ejemplo n.º 6
0
 public override Enemy CopyRight()
 {
     // Enemy copy method for right movement path
     Enemy enemyCopy = new EMiniboss(
         new AnimatedTexture(aliveTex, 25, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 5),
         new AnimatedTexture(deadTex, 40, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 8),
         bulletText, maxBullets, scoreValue, 0.25f, new Vector2(350 - getWidth() / 2, -50f), new Vector2(0, 2.5f), 1, 1, false, false);
     return enemyCopy;
 }