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
@@ -19,73 +19,72 @@ import engine.objects.AbstractGameObject;
public class TransferItemFromEquipToInventoryMsg extends ClientNetMsg {
private int playerType;
private int playerUUID;
private int slotNumber;
private int playerType;
private int playerUUID;
private int slotNumber;
/**
* This is the general purpose constructor.
*/
public TransferItemFromEquipToInventoryMsg(AbstractGameObject ago, int slotNumber) {
super(Protocol.UNEQUIP);
this.playerType = ago.getObjectType().ordinal();
this.playerUUID = ago.getObjectUUID();
this.slotNumber = slotNumber;
}
* This is the general purpose constructor.
*/
public TransferItemFromEquipToInventoryMsg(AbstractGameObject ago, int slotNumber) {
super(Protocol.UNEQUIP);
this.playerType = ago.getObjectType().ordinal();
this.playerUUID = ago.getObjectUUID();
this.slotNumber = slotNumber;
}
/**
* 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 TransferItemFromEquipToInventoryMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.UNEQUIP, 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 TransferItemFromEquipToInventoryMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.UNEQUIP, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.playerType = reader.getInt();
this.playerUUID = reader.getInt();
this.slotNumber = reader.getInt();
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.playerType = reader.getInt();
this.playerUUID = reader.getInt();
this.slotNumber = reader.getInt();
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _serialize(ByteBufferWriter writer) throws SerializationException {
writer.putInt(this.playerType);
writer.putInt(this.playerUUID);
writer.putInt(this.slotNumber);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _serialize(ByteBufferWriter writer) throws SerializationException {
writer.putInt(this.playerType);
writer.putInt(this.playerUUID);
writer.putInt(this.slotNumber);
}
/**
* @return the slotNumber
*/
public int getSlotNumber() {
return slotNumber;
}
/**
* @return the slotNumber
*/
public int getSlotNumber() {
return slotNumber;
}
public int getPlayerType() {
return playerType;
}
public int getPlayerType() {
return playerType;
}
public void setPlayerType(int playerType) {
this.playerType = playerType;
}
public void setPlayerType(int playerType) {
this.playerType = playerType;
}
public int getPlayerUUID() {
return playerUUID;
}
public int getPlayerUUID() {
return playerUUID;
}
public void setPlayerUUID(int playerUUID) {
this.playerUUID = playerUUID;
}
public void setPlayerUUID(int playerUUID) {
this.playerUUID = playerUUID;
}
}