package project;

public class MonsterBattleMode extends Attack {
  
  private Monster monster;
  
  public MonsterBattleMode(Monster m) {
	monster = m;
	text = monster.text;
	AttackPower = monster.getAttackPower();
	health = monster.health;
  } //counstructor MonsterBattleMode
  
  public void update() {}
  
  public void EnterBattleMode() throws NullTargetException { 
	if (monster.target==null) 
	  throw new NullTargetException();
  } //method EnterBattleMode
  
  public void Attack() throws NullTargetException { 
     if ( monster.target!=null && monster.Alive ) {
	    monster.AttackIntro();  //prints some variated messages on Attacks 
	   (monster.target).beAttacked(monster);
	 } //if
	 else throw new NullTargetException();
  } //method Attack
  
} //class MonsterBattleMode