Added GCW Banners

- Added GCW Banners and the according profession buffs
- Fixed some AI issues
This commit is contained in:
CharonInferar
2014-07-23 22:13:17 +02:00
parent 4fe9270a69
commit b1f05c6802
22 changed files with 321 additions and 13 deletions
+11
View File
@@ -363,6 +363,17 @@ public class SimulationService implements INetworkDispatch {
return foundCreatures;
}
public Vector<CreatureObject> getAllNearSameFactionCreatures(int distance, Point3D centerPos, Planet planet, String factionName){
Vector<CreatureObject> foundCreatures = new Vector<CreatureObject>();
core.simulationService.get(planet, centerPos.x, centerPos.z, distance).stream().forEach((objecta) -> {
if (factionName.length()>0 && objecta instanceof CreatureObject){
if (NGECore.getInstance().factionService.isFactionAlly(((CreatureObject) objecta).getFaction(),factionName))
foundCreatures.add((CreatureObject)objecta);
}
});
return foundCreatures;
}
public Vector<TangibleObject> getAllNearTANOs(int distance, SWGObject value ){
Vector<TangibleObject> foundTANOs = new Vector<TangibleObject>();
core.simulationService.get(value.getPlanet(), value.getWorldPosition().x, value.getWorldPosition().z, distance).stream().forEach((objecta) -> {