Massive refactor to start using lib/PSWGCommon.jar

This commit is contained in:
Obique PSWG
2017-04-05 13:51:19 -05:00
parent 8bc071897c
commit bcf6b306d3
170 changed files with 955 additions and 6498 deletions
+6 -4
View File
@@ -52,9 +52,6 @@ import resources.Location;
import resources.Point3D;
import resources.Terrain;
import resources.config.ConfigFile;
import resources.control.Assert;
import resources.control.Intent;
import resources.control.Service;
import resources.network.DisconnectReason;
import resources.objects.SWGObject;
import resources.objects.awareness.AwarenessHandler;
@@ -64,8 +61,13 @@ import resources.objects.creature.CreatureObject;
import resources.player.Player;
import resources.player.PlayerEvent;
import resources.player.PlayerState;
import resources.server_info.DataManager;
import resources.server_info.Log;
import com.projectswg.common.control.Intent;
import com.projectswg.common.control.Service;
import com.projectswg.common.debug.Assert;
public class ObjectAwareness extends Service implements TerrainMapCallback {
private static final Location GONE_LOCATION = new Location(0, 0, 0, Terrain.GONE);
@@ -76,7 +78,7 @@ public class ObjectAwareness extends Service implements TerrainMapCallback {
public ObjectAwareness() {
awarenessHandler = new AwarenessHandler(this);
dataTransformHandler = new DataTransformHandler();
dataTransformHandler.setSpeedCheck(getConfig(ConfigFile.FEATURES).getBoolean("SPEED-HACK-CHECK", true));
dataTransformHandler.setSpeedCheck(DataManager.getConfig(ConfigFile.FEATURES).getBoolean("SPEED-HACK-CHECK", true));
registerForIntent(PlayerEventIntent.class, pei -> handlePlayerEventIntent(pei));
registerForIntent(ObjectCreatedIntent.class, oci -> handleObjectCreatedIntent(oci));