package tcp;

public class codes {
    public static final int TURNEAST = 0x0;
    public static final int TURNSOUTH = 0x1;
    public static final int TURNNORTH = 0x2;
    public static final int TURNWEST = 0x3;
    public static final int GET = 0x4;
    private codes() {};
}


@@ -7,16 +7,55 @@
 e tcp;%0A%0A
+%0A// Encode format : action + keystatus%0A
 public c
@@ -67,16 +67,31 @@
 codes %7B%0A
+    // actions%0A
     publ
@@ -114,15 +114,15 @@
 int 
-TURNEAS
+MOVELEF
 T = 
@@ -158,17 +158,17 @@
 int 
-TURNSOUTH
+MOVERIGHT
  = 0
@@ -203,23 +203,266 @@
 int 
-TURNNORTH
+MOVEUP = 0x2;%0A    public static final int MOVEDOWN = 0x3;%0A    public static final int ATTACK = 0x4;%0A    // keystatus%0A    public static final int KEYDOWN = 0x0;%0A    public static final int KEYRELEASE = 0x1;%0A    // type%0A    public static final int PLAYER
  = 0x
-2
+0
 ;%0A  
@@ -491,22 +491,66 @@
 int 
-TURNWEST
+PROJECTOR = 0x1;%0A    public static final int MONSTER
  = 0x
-3
+2
 ;%0A  
@@ -579,17 +579,18 @@
 int 
-GET
+ITEM
  = 0x
-4
+3
 ;%0A  
@@ -612,10 +612,8 @@
 () %7B%7D;%0A%7D
-%0A%0A

Add type code in codes.java