1 package net.sourceforge.simplegamenet.connectaline; 2 3 import java.io.Serializable; 4 5 public class CALPacket implements Serializable { 6 7 protected int cALPacketCode; 8 protected Serializable cALData; 9 10 CALPacket() { 11 cALPacketCode = 0; 12 cALData = null; 13 } 14 15 CALPacket(int cALPacketCode) { 16 System.out.println("test1"); 17 cALPacketCode = cALPacketCode; 18 cALData = null; 19 System.out.println("test2"); 20 } 21 22 CALPacket(int cALPacketCode, Serializable cALData) { 23 this.cALPacketCode = cALPacketCode; 24 this.cALData = cALData; 25 } 26 27 public int getCalPacketCode() { 28 return cALPacketCode; 29 } 30 31 public Serializable getCalData() { 32 return cALData; 33 } 34 35 }