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
+67 -67
View File
@@ -17,84 +17,84 @@ import engine.net.client.Protocol;
public class RespawnMsg extends ClientNetMsg {
protected int objectType;
protected int objectID;
protected float playerHealth;
protected int playerExp;
protected int objectType;
protected int objectID;
protected float playerHealth;
protected int playerExp;
/**
* This is the general purpose constructor.
*/
public RespawnMsg() {
super(Protocol.RESETAFTERDEATH);
this.objectType = 0;
this.objectID = 0;
this.playerHealth = 0;
this.playerExp = 0;
}
/**
* This is the general purpose constructor.
*/
public RespawnMsg() {
super(Protocol.RESETAFTERDEATH);
this.objectType = 0;
this.objectID = 0;
this.playerHealth = 0;
this.playerExp = 0;
}
/**
* 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 RespawnMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.RESETAFTERDEATH, 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 RespawnMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.RESETAFTERDEATH, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(this.objectType);
writer.putInt(this.objectID);
writer.putFloat(this.playerHealth);
writer.putInt(this.playerExp);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(this.objectType);
writer.putInt(this.objectID);
writer.putFloat(this.playerHealth);
writer.putInt(this.playerExp);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.objectType = reader.getInt();
this.objectID = reader.getInt();
this.playerHealth = reader.getFloat();
this.playerExp = reader.getInt();
}
this.objectType = reader.getInt();
this.objectID = reader.getInt();
this.playerHealth = reader.getFloat();
this.playerExp = reader.getInt();
}
public int getObjectType() {
return this.objectType;
}
public int getObjectType() {
return this.objectType;
}
public int getObjectID() {
return this.objectID;
}
public void setObjectType(int value) {
this.objectType = value;
}
public float getPlayerHealth() {
return this.playerHealth;
}
public int getObjectID() {
return this.objectID;
}
public int getPlayerExp() {
return this.playerExp;
}
public void setObjectID(int value) {
this.objectID = value;
}
public void setObjectType(int value) {
this.objectType = value;
}
public float getPlayerHealth() {
return this.playerHealth;
}
public void setObjectID(int value) {
this.objectID = value;
}
public void setPlayerHealth(float value) {
this.playerHealth = value;
}
public void setPlayerHealth(float value) {
this.playerHealth = value;
}
public int getPlayerExp() {
return this.playerExp;
}
public void setPlayerExp(int value) {
this.playerExp = value;
}
public void setPlayerExp(int value) {
this.playerExp = value;
}
}