public static void rotateEntity(boolean clockwise, int uid) { EntityManager.rotateEntity(clockwise, uid); ServerMain.sendToAll( PacketBuilder.entityMove( uid, entities.get(uid).getLocation().x, entities.get(uid).getLocation().y, entities.get(uid).getDirection())); }
public static void moveEntity(boolean forward, int uid) { EntityManager.moveEntity(forward, uid); ServerMain.sendToAll( PacketBuilder.entityMove( uid, entities.get(uid).getLocation().x, entities.get(uid).getLocation().y, entities.get(uid).getDirection())); }
public static void removeEntity(int uid) { EntityManager.removeEntity(uid); ServerMain.sendToAll(PacketBuilder.removeEntity(uid)); }