1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-30 11:19:17 +00:00

fonctionniert

This commit is contained in:
Fastium
2022-06-13 21:38:00 +02:00
parent 47b86dd6c8
commit 2d2095a65a
5 changed files with 26 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ public class ScreenBattle extends RenderingScreen{
private Enemy enemy;
private boolean screenBattleOn = true;
@Override
public void onInit() {
//display the question
@@ -94,6 +96,10 @@ public class ScreenBattle extends RenderingScreen{
//TODO afficher le joueur
}
public boolean getScreenBattleOn(){
return screenBattleOn;
}
public void manage(Controller c, Battle battle){
if(PokeMudry.front_montant){
System.out.println("manage: " + battle.getLineSpeech());
@@ -103,6 +109,9 @@ public class ScreenBattle extends RenderingScreen{
System.out.println("in");
battle.readNextLine();
}
if (c.keyStatus.get(Input.Keys.ENTER)){
screenBattleOn = battle.finish();
}
}
if(battle.getAttackOn() == true){