1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-07 17:01:10 +00:00
This commit is contained in:
Fastium
2022-06-12 14:26:02 +02:00
parent c121320a04
commit 6248936e5a
4 changed files with 87 additions and 76 deletions

View File

@ -8,16 +8,19 @@ public class Battle {
private Enemy enemy;
TextEnemy textEnemy;
public int lineSpeech = 0;
private int lineSpeech;
public int answer = 0;
private boolean c;
public int answer;
public Battle(Enemy enemy){
this.enemy = enemy;
textEnemy = new TextEnemy("enemi"); // should be enemy.name
textEnemy.generateText();
lineSpeech = 0;
answer = 0;
//initialize the first line
System.out.println("lll : "+ getLine());
@ -26,6 +29,7 @@ public class Battle {
public void readNextLine(){
//change line
lineSpeech++;
}
public boolean getAttackOn(){
@ -35,6 +39,10 @@ public class Battle {
public String getLine(){
return textEnemy.lines.get(lineSpeech).line;
}
public int getLineSpeech() {
return lineSpeech;
}
}