Exemplo n.º 1
0
 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()));
 }
Exemplo n.º 2
0
 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()));
 }
Exemplo n.º 3
0
 public static void removeEntity(int uid) {
   EntityManager.removeEntity(uid);
   ServerMain.sendToAll(PacketBuilder.removeEntity(uid));
 }