Exemplo n.º 1
0
 /** Establece las estadísticas usando las bases de su raza, el nivel y los incrementos pasados. */
 @Override
 public void setStats(
     float incrementAtq,
     float incrementDef,
     float incrementHp,
     float incrementVel,
     int baseExperience) {
   super.setStats(incrementAtq, incrementDef, incrementHp, incrementVel, baseExperience);
   // ToDo: Cambiar delays según estadísticas
   this.delayAppear = 2 + (int) (Math.random() * 6);
   this.delayAttack = 1 + (int) (Math.random() * 4);
   this.delayDisappear = 2 + (int) (Math.random() * 6);
   this.actualDelay = this.delayAttack;
   this.mode = 0;
 }