示例#1
0
 public override Enemy Copy(Vector2 position, Vector2 velocity, int mpattern, int fpattern, bool foodDrop, bool left)
 {
     Enemy enemyCopy = new ELion2(
         new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
         new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
         bulletText, maxBullets, scoreValue, 0.5f, position, velocity, mpattern, fpattern, foodDrop, left);
     return enemyCopy;
 }
示例#2
0
 public override Enemy CopyLeft()
 {
     // Enemy copy method for left movement path
     Enemy enemyCopy = new ELion2(
         new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
         new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
         bulletText, maxBullets, scoreValue, 0.5f, new Vector2(0f, 650f), new Vector2(0f, -3f), 1, 1, false, true);
     return enemyCopy;
 }
示例#3
0
        public override Enemy Copy(Vector2 position, Vector2 velocity, int mpattern, int fpattern, bool foodDrop, bool left)
        {
            Enemy enemyCopy = new ELion2(
                new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
                new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
                bulletText, maxBullets, scoreValue, 0.5f, position, velocity, mpattern, fpattern, foodDrop, left);

            return(enemyCopy);
        }
示例#4
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 ELion2(
         new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
         new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
         bulletText, maxBullets, scoreValue, 0.5f, Vector2.Zero, Vector2.Zero, 1, 1, false, false);
     return enemyCopy;
 }
示例#5
0
        public override Enemy CopyLeft()
        {
            // Enemy copy method for left movement path
            Enemy enemyCopy = new ELion2(
                new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
                new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
                bulletText, maxBullets, scoreValue, 0.5f, new Vector2(0f, 650f), new Vector2(0f, -3f), 1, 1, false, true);

            return(enemyCopy);
        }
示例#6
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 ELion2(
                new AnimatedTexture(aliveTex, 1, 1, Vector2.Zero, 0.0f, 1.0f, 0.2f),
                new AnimatedTexture(deadTex, 35, 30, Vector2.Zero, 0.0f, 1.0f, 0.2f, 7),
                bulletText, maxBullets, scoreValue, 0.5f, Vector2.Zero, Vector2.Zero, 1, 1, false, false);

            return(enemyCopy);
        }