public class SimulationService extends java.lang.Object implements INetworkDispatch
Constructor and Description |
---|
SimulationService(NGECore core) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(SWGObject object,
float x,
float y) |
void |
add(SWGObject object,
int x,
int y) |
boolean |
checkLineOfSight(SWGObject obj1,
SWGObject obj2) |
boolean |
checkLineOfSightInBuilding(SWGObject obj1,
SWGObject obj2,
SWGObject building) |
boolean |
checkLineOfSightWorldToCell(SWGObject obj1,
SWGObject obj2,
CellObject cell) |
Ray |
convertRayToModelSpace(Point3D origin,
Point3D end,
SWGObject object) |
java.util.List<SWGObject> |
get(Planet planet,
float x,
float y,
int range) |
java.util.List<SWGObject> |
get(Planet planet,
int x,
int y,
int range) |
float |
getHeightOrigin(CreatureObject creature) |
void |
handleDisconnect(org.apache.mina.core.session.IoSession session) |
void |
handleZoneIn(Client client) |
void |
insertOpcodes(java.util.Map<java.lang.Integer,INetworkRemoteEvent> swgOpcodes,
java.util.Map<java.lang.Integer,INetworkRemoteEvent> objControllerOpcodes) |
boolean |
move(SWGObject object,
float oldX,
float oldY,
float newX,
float newY) |
boolean |
move(SWGObject object,
int oldX,
int oldY,
int newX,
int newY) |
void |
openContainer(SWGObject requester,
SWGObject container) |
boolean |
remove(SWGObject object,
float x,
float y) |
boolean |
remove(SWGObject object,
int x,
int y) |
void |
shutdown() |
void |
teleport(SWGObject obj,
Point3D position,
Quaternion orientation) |
void |
transferToPlanet(SWGObject object,
Planet planet,
Point3D newPos,
Quaternion newOrientation) |
public SimulationService(NGECore core)
public void add(SWGObject object, int x, int y)
public boolean add(SWGObject object, float x, float y)
public boolean move(SWGObject object, int oldX, int oldY, int newX, int newY)
public boolean move(SWGObject object, float oldX, float oldY, float newX, float newY)
public boolean remove(SWGObject object, int x, int y)
public boolean remove(SWGObject object, float x, float y)
public void insertOpcodes(java.util.Map<java.lang.Integer,INetworkRemoteEvent> swgOpcodes, java.util.Map<java.lang.Integer,INetworkRemoteEvent> objControllerOpcodes)
insertOpcodes
in interface INetworkDispatch
public void shutdown()
shutdown
in interface INetworkDispatch
public Ray convertRayToModelSpace(Point3D origin, Point3D end, SWGObject object)
public void handleDisconnect(org.apache.mina.core.session.IoSession session)
public void handleZoneIn(Client client)
public void transferToPlanet(SWGObject object, Planet planet, Point3D newPos, Quaternion newOrientation)
public void teleport(SWGObject obj, Point3D position, Quaternion orientation)
public boolean checkLineOfSightInBuilding(SWGObject obj1, SWGObject obj2, SWGObject building)
public boolean checkLineOfSightWorldToCell(SWGObject obj1, SWGObject obj2, CellObject cell)
public float getHeightOrigin(CreatureObject creature)