Project cleanup pre merge.
This commit is contained in:
@@ -17,68 +17,68 @@ import engine.net.client.Protocol;
|
||||
|
||||
public class ToggleSitStandMsg extends ClientNetMsg {
|
||||
|
||||
private int sourceType;
|
||||
private int sourceID;
|
||||
private boolean toggleSitStand;
|
||||
private int sourceType;
|
||||
private int sourceID;
|
||||
private boolean toggleSitStand;
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public ToggleSitStandMsg() {
|
||||
super(Protocol.TOGGLESITSTAND);
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public ToggleSitStandMsg() {
|
||||
super(Protocol.TOGGLESITSTAND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 ToggleSitStandMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.TOGGLESITSTAND, 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 ToggleSitStandMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.TOGGLESITSTAND, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(this.sourceType);
|
||||
writer.putInt(this.sourceID);
|
||||
writer.put(this.toggleSitStand ? (byte) 0x01 : (byte) 0x00);
|
||||
}
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(this.sourceType);
|
||||
writer.putInt(this.sourceID);
|
||||
writer.put(this.toggleSitStand ? (byte) 0x01 : (byte) 0x00);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.sourceType = reader.getInt();
|
||||
this.sourceID = reader.getInt();
|
||||
this.toggleSitStand = (reader.get() == (byte) 0x01) ? true : false;
|
||||
}
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.sourceType = reader.getInt();
|
||||
this.sourceID = reader.getInt();
|
||||
this.toggleSitStand = (reader.get() == (byte) 0x01) ? true : false;
|
||||
}
|
||||
|
||||
public int getSourceType() {
|
||||
return this.sourceType;
|
||||
}
|
||||
public int getSourceType() {
|
||||
return this.sourceType;
|
||||
}
|
||||
|
||||
public int getSourceID() {
|
||||
return this.sourceID;
|
||||
}
|
||||
public void setSourceType(int value) {
|
||||
this.sourceType = value;
|
||||
}
|
||||
|
||||
public boolean toggleSitStand() {
|
||||
return this.toggleSitStand;
|
||||
}
|
||||
public int getSourceID() {
|
||||
return this.sourceID;
|
||||
}
|
||||
|
||||
public void setSourceType(int value) {
|
||||
this.sourceType = value;
|
||||
}
|
||||
public void setSourceID(int value) {
|
||||
this.sourceID = value;
|
||||
}
|
||||
|
||||
public void setSourceID(int value) {
|
||||
this.sourceID = value;
|
||||
}
|
||||
public boolean toggleSitStand() {
|
||||
return this.toggleSitStand;
|
||||
}
|
||||
|
||||
public void setToggleSitStand(boolean value) {
|
||||
this.toggleSitStand = value;
|
||||
}
|
||||
public void setToggleSitStand(boolean value) {
|
||||
this.toggleSitStand = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user