mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-30 19:29:17 +00:00 
			
		
		
		
	change screenBattleOn
This commit is contained in:
		| @@ -7,7 +7,6 @@ import Text.TextEnemy; | |||||||
|  |  | ||||||
| public class Battle { | public class Battle { | ||||||
|      |      | ||||||
|     private Enemy enemy; |  | ||||||
|  |  | ||||||
|     TextEnemy textEnemy; |     TextEnemy textEnemy; | ||||||
|     private int lineSpeech; |     private int lineSpeech; | ||||||
| @@ -16,9 +15,10 @@ public class Battle { | |||||||
|  |  | ||||||
|     private int winPoint; |     private int winPoint; | ||||||
|  |  | ||||||
|  |     private boolean screenBattleOn = true; | ||||||
|  |     | ||||||
|  |  | ||||||
|     public Battle(Enemy enemy){ |     public Battle(Enemy enemy){ | ||||||
|         this.enemy = enemy; |  | ||||||
|         textEnemy = new TextEnemy("enemi"); // should be enemy.name |         textEnemy = new TextEnemy("enemi"); // should be enemy.name | ||||||
| 		textEnemy.generateText(); | 		textEnemy.generateText(); | ||||||
|  |  | ||||||
| @@ -79,5 +79,9 @@ public class Battle { | |||||||
|         return lineSpeech; |         return lineSpeech; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     public boolean getScreenBattle(){ | ||||||
|  |         return screenBattleOn; | ||||||
|  |     } | ||||||
|  |       | ||||||
|      |      | ||||||
| } | } | ||||||
|   | |||||||
| @@ -31,7 +31,6 @@ public class ScreenPlayer { | |||||||
|         } |         } | ||||||
|          |          | ||||||
|         if(sb != null){ |         if(sb != null){ | ||||||
|             sb.setEnemy(e); |  | ||||||
|             sb.setBattle(b); |             sb.setBattle(b); | ||||||
|         } |         } | ||||||
|          |          | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user