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

finish to add time

This commit is contained in:
2022-06-16 14:24:20 +02:00
parent e748f763a8
commit 20a4356f69
9 changed files with 30 additions and 38 deletions

View File

@ -1,10 +1,13 @@
package Entity;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector2;
import Main.Settings;
public class Enemy extends Character{
private String branch;
public int recoveredTime = Settings.RECOVERED;

View File

@ -8,6 +8,7 @@ import com.badlogic.gdx.math.Vector2;
import Control.Controller;
import Main.PokeMudry;
import Main.Settings;
import Screen.ScreenMap;
public class Player extends Character{
@ -77,6 +78,8 @@ public class Player extends Character{
if(onDoor){
long time = System.currentTimeMillis();
while (System.currentTimeMillis()-time < Settings.SWITCHMAPTIME) { }
String nMap = null;
Integer x = null;
Integer y = null;