forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -17,52 +17,52 @@ import engine.net.client.Protocol;
|
||||
|
||||
public class PetCmdMsg extends ClientNetMsg {
|
||||
|
||||
private int type;
|
||||
private int type;
|
||||
|
||||
//1: stop attack
|
||||
//2: dismiss
|
||||
//3: toggle assist
|
||||
//5: rest
|
||||
//1: stop attack
|
||||
//2: dismiss
|
||||
//3: toggle assist
|
||||
//5: rest
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PetCmdMsg(int type) {
|
||||
super(Protocol.ARCPETCMD);
|
||||
this.type = type;
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public PetCmdMsg(int type) {
|
||||
super(Protocol.ARCPETCMD);
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 PetCmdMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.ARCPETCMD, 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 PetCmdMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.ARCPETCMD, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(type);
|
||||
}
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.type = reader.getInt();
|
||||
}
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.type = reader.getInt();
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(int value) {
|
||||
this.type = value;
|
||||
}
|
||||
public void setType(int value) {
|
||||
this.type = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user