Browse Source

HZ related stuff

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
128f677d0e
  1. 13
      src/engine/gameManager/HotzoneManager.java

13
src/engine/gameManager/HotzoneManager.java

@ -9,15 +9,20 @@ import engine.net.client.msg.chat.ChatSystemMsg; @@ -9,15 +9,20 @@ import engine.net.client.msg.chat.ChatSystemMsg;
import engine.objects.*;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class HotzoneManager {
public static Long lastPulseTime = 0L;
public static HashMap<Guild, ArrayList<PlayerCharacter>> playersPresent;
public static Mob hotzoneMob = null;
public static void SelectRandomHotzone(){
if(hotzoneMob != null){
hotzoneMob.killCharacter("Hotzone Over");
hotzoneMob.despawn();
hotzoneMob.spawnTime = 1000000000;
}
Random random = new Random();
Zone newHotzone = null;
@ -162,4 +167,10 @@ public class HotzoneManager { @@ -162,4 +167,10 @@ public class HotzoneManager {
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
}
}
public static void pulse(){
if(HotzoneManager.playersPresent == null){
HotzoneManager.playersPresent = new HashMap<>();
}
}
}

Loading…
Cancel
Save