예제 #1
0
 //Constructor
 public Enemy1(Texture2D loadedSprite, Rectangle viewPort)
     : base(loadedSprite)
 {
     z_AI = new AI_ZigZag(viewPort);
     this.setPosition(this.z_AI.getStartingPosition());
     this.z_isAvailable = true;
     this.fireTime = 0;
     this.fireCoolOff = 1000;
 }
 //Constructor
 public Enemy1(Texture2D loadedSprite, Rectangle viewPort)
     : base(loadedSprite)
 {
     z_AI = new AI_ZigZag(viewPort);
     this.setPosition(this.z_AI.getStartingPosition());
 }