Project cleanup pre merge.
This commit is contained in:
@@ -18,48 +18,48 @@ import engine.net.client.Protocol;
|
||||
|
||||
public class PassiveMessageTriggerMsg extends ClientNetMsg {
|
||||
|
||||
private byte animation; //not sure if it's animation, 0 or 1.
|
||||
private byte animation; //not sure if it's animation, 0 or 1.
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PassiveMessageTriggerMsg(byte animation) {
|
||||
super(Protocol.PASSIVEMESSAGETRIGGER);
|
||||
this.animation = animation;
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PassiveMessageTriggerMsg(byte animation) {
|
||||
super(Protocol.PASSIVEMESSAGETRIGGER);
|
||||
this.animation = animation;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 PassiveMessageTriggerMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.PASSIVEMESSAGETRIGGER, 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 PassiveMessageTriggerMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.PASSIVEMESSAGETRIGGER, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.put(this.animation);
|
||||
}
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.put(this.animation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.animation = reader.get();
|
||||
}
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.animation = reader.get();
|
||||
}
|
||||
|
||||
public byte getAnimation() {
|
||||
return this.animation;
|
||||
}
|
||||
public byte getAnimation() {
|
||||
return this.animation;
|
||||
}
|
||||
|
||||
public void setAnimation(byte value) {
|
||||
this.animation = value;
|
||||
}
|
||||
public void setAnimation(byte value) {
|
||||
this.animation = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user