Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
@@ -16,58 +16,56 @@ import engine.objects.PlayerCharacter;
public class RequestBallListMessage extends ClientNetMsg {
public int playerID;
public String errorMessage;
public int msgType;
public static int REQUEST = 0;
public static int REQUEST = 0;
public int playerID;
public String errorMessage;
public int msgType;
/**
* This is the general purpose constructor.
*/
public RequestBallListMessage(PlayerCharacter pc) {
super(Protocol.REQUESTBALLLIST);
}
/**
* This is the general purpose constructor.
*/
public RequestBallListMessage(PlayerCharacter pc) {
super(Protocol.REQUESTBALLLIST);
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public RequestBallListMessage(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.REQUESTBALLLIST, origin, reader);
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public RequestBallListMessage(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.REQUESTBALLLIST, origin, reader);
}
/**
* Copy constructor
*/
public RequestBallListMessage(RequestBallListMessage msg) {
super(Protocol.REQUESTBALLLIST);
}
/**
* Copy constructor
*/
public RequestBallListMessage(RequestBallListMessage msg) {
super(Protocol.REQUESTBALLLIST);
}
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
reader.getInt();
this.playerID = reader.getInt();
this.msgType = reader.getInt();
this.errorMessage = reader.getString();
}
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(GameObjectType.PlayerCharacter.ordinal());
writer.putInt(this.playerID);
writer.putInt(this.msgType);
writer.putString(this.errorMessage);
}
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
reader.getInt();
this.playerID = reader.getInt();
this.msgType = reader.getInt();
this.errorMessage = reader.getString();
}
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(GameObjectType.PlayerCharacter.ordinal());
writer.putInt(this.playerID);
writer.putInt(this.msgType);
writer.putString(this.errorMessage);
}
}