diff options
Diffstat (limited to 'src/alden/PeerMessage.java')
-rw-r--r-- | src/alden/PeerMessage.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/alden/PeerMessage.java b/src/alden/PeerMessage.java deleted file mode 100644 index a5af7de..0000000 --- a/src/alden/PeerMessage.java +++ /dev/null @@ -1,28 +0,0 @@ -package alden;
-import java.io.*;
-import java.util.*;
-
-
-public class PeerMessage implements Serializable {
- private static final long serialVersionUID = 3667108226485766929L;
- public static final String DEFAULT_ID = "TesseractProject";
-
- public enum Type {
- JOIN, JOIN_RESULT, ADD_PEERS, REMOVE_PEERS, PAYLOAD, EXTRA;
- }
-
- public Type type;
- public PeerInformation sender;
- public PeerCoordinates location;
- public ArrayList<PeerInformation> peers;
- public CollidableObject payload;
- public Object extra;
- public String id;
-
- public PeerMessage(Type type, PeerInformation sender) {
- this.type = type;
- this.sender = sender;
- peers = new ArrayList<PeerInformation>();
- this.id = DEFAULT_ID;
- }
-}
|