Example #1
0
 /// <summary>
 /// The Boss constructor initializes the attributes of the Boss
 /// class and the attributes inherited by the Enemies interface. The Boss
 /// class takes as input a position, an image of the Boss, the game canvas,
 /// the animation for the commander.
 /// </summary>
 /// <param name="point">Position of type Point</param>
 /// <param name="image">an image of a commander</param>
 /// <param name="canvas">the game canvas</param>
 /// <param name="animation">instance of the Animation class</param>
 public Boss(Point point, Image image, Canvas canvas, Animation animation)
     : base(point, image, canvas, animation)
 {
 }
Example #2
0
 /// <summary>
 /// The overridden Fly method takes as input a double for the frequency
 /// to call the startFly method for the moving of the Boss on the screen
 /// and the method initiates the animation of the Boss as well
 /// </summary>
 /// <param name="frequency">double value for the speed of the moving</param>
 public override void Fly(double frequency)
 {
     Animation.Initiate(this.animation, frequency);
     startFly();
 }