Explorar o código

Ajout handler

Brandao Arthur %!s(int64=6) %!d(string=hai) anos
pai
achega
2c02c1c0ca
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      Client/src/main/java/test/ServerTest.java

+ 10 - 1
Client/src/main/java/test/ServerTest.java

@@ -37,7 +37,16 @@ public class ServerTest {
             System.err.println("Aucun serveur");
             return;
         }
-        bsc.addHandler("test", new ServerHandlerTest());
+        //Ajout handler
+        bsc.addHandler("server/end", new HandlerServerEnd());
+        bsc.addHandler("game/newplayer", new HandlerPlayerJoin());
+        bsc.addHandler("game/quit", new HandlerPlayerQuit());
+        bsc.addHandler("player/position/update", new HandlerPlayerMove());
+        bsc.addHandler("player/major/end", new HandlerPlayerMajorEnd());
+        bsc.addHandler("attack/newbomb", new HandlerAttackBomb());
+        bsc.addHandler("attack/affect", new HandlerAttackAffect());
+        bsc.addHandler("attack/explose", new HandlerAttackExplode());
+        //Connexion
         bsc.selectServer(0);
         bsc.send("POST", "aze/rty");
         System.out.println("A");