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,83 +17,83 @@ import engine.net.client.Protocol;
public class ScaleObjectMsg extends ClientNetMsg {
private long compID;
private float scaleX;
private float scaleY;
private float scaleZ;
private long compID;
private float scaleX;
private float scaleY;
private float scaleZ;
/**
* This is the general purpose constructor.
*/
public ScaleObjectMsg(long compID, float scaleX, float scaleY, float scaleZ) {
super(Protocol.SCALEOBJECT);
this.compID = compID;
this.scaleX = scaleX;
this.scaleY = scaleY;
this.scaleZ = scaleZ;
}
/**
* This is the general purpose constructor.
*/
public ScaleObjectMsg(long compID, float scaleX, float scaleY, float scaleZ) {
super(Protocol.SCALEOBJECT);
this.compID = compID;
this.scaleX = scaleX;
this.scaleY = scaleY;
this.scaleZ = scaleZ;
}
/**
* 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 ScaleObjectMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.SCALEOBJECT, 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 ScaleObjectMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.SCALEOBJECT, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putLong(this.compID);
writer.putFloat(this.scaleX);
writer.putFloat(this.scaleY);
writer.putFloat(this.scaleZ);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putLong(this.compID);
writer.putFloat(this.scaleX);
writer.putFloat(this.scaleY);
writer.putFloat(this.scaleZ);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.compID = reader.getLong();
this.scaleX = reader.getFloat();
this.scaleY = reader.getFloat();
this.scaleZ = reader.getFloat();
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.compID = reader.getLong();
this.scaleX = reader.getFloat();
this.scaleY = reader.getFloat();
this.scaleZ = reader.getFloat();
}
public long getCompID() {
return this.compID;
}
public long getCompID() {
return this.compID;
}
public float getScaleX() {
return this.scaleX;
}
public void setCompID(long value) {
this.compID = value;
}
public float getScaleY() {
return this.scaleY;
}
public float getScaleX() {
return this.scaleX;
}
public float getScaleZ() {
return this.scaleZ;
}
public void setScaleX(float value) {
this.scaleX = value;
}
public void setCompID(long value) {
this.compID = value;
}
public float getScaleY() {
return this.scaleY;
}
public void setScaleX(float value) {
this.scaleX = value;
}
public void setScaleY(float value) {
this.scaleY = value;
}
public void setScaleY(float value) {
this.scaleY = value;
}
public float getScaleZ() {
return this.scaleZ;
}
public void setScaleZ(float value) {
this.scaleZ = value;
}
public void setScaleZ(float value) {
this.scaleZ = value;
}
}