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
+34 -34
View File
@@ -18,44 +18,44 @@ import engine.net.client.Protocol;
public class TrackArrowMsg extends ClientNetMsg {
protected float direction;
protected float direction;
public TrackArrowMsg(float direction) {
super(Protocol.ARCTRACKOBJECT);
this.direction = direction;
}
public TrackArrowMsg(float direction) {
super(Protocol.ARCTRACKOBJECT);
this.direction = direction;
}
/**
* 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 TrackArrowMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.ARCTRACKOBJECT, 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 TrackArrowMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.ARCTRACKOBJECT, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putFloat(this.direction);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putFloat(this.direction);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.direction = reader.getFloat();
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.direction = reader.getFloat();
}
public float getDirection() {
return this.direction;
}
public float getDirection() {
return this.direction;
}
public void setDirection(float value) {
this.direction = value;
}
public void setDirection(float value) {
this.direction = value;
}
}