forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -17,43 +17,43 @@ import engine.net.client.Protocol;
|
||||
|
||||
public class PromptRecallMsg extends ClientNetMsg {
|
||||
|
||||
private byte confirmation;
|
||||
private byte confirmation;
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PromptRecallMsg() {
|
||||
super(Protocol.ARCPROMPTRECALL);
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PromptRecallMsg() {
|
||||
super(Protocol.ARCPROMPTRECALL);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 PromptRecallMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.ARCPROMPTRECALL, 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 PromptRecallMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.ARCPROMPTRECALL, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.put((byte)0x01); // tried 0 and 1
|
||||
}
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.put((byte) 0x01); // tried 0 and 1
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.confirmation = reader.get();
|
||||
}
|
||||
|
||||
public boolean getConfirmed() {
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.confirmation = reader.get();
|
||||
}
|
||||
|
||||
public boolean getConfirmed() {
|
||||
|
||||
return confirmation == 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user