Project cleanup pre merge.
This commit is contained in:
@@ -15,51 +15,50 @@ import engine.objects.PlayerCharacter;
|
||||
|
||||
public class DeclineFriendMsg extends ClientNetMsg {
|
||||
|
||||
public String sourceName;
|
||||
public String friendName;
|
||||
public String sourceName;
|
||||
public String friendName;
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public DeclineFriendMsg(PlayerCharacter pc) {
|
||||
super(Protocol.FRIENDDECLINE);
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public DeclineFriendMsg(PlayerCharacter pc) {
|
||||
super(Protocol.FRIENDDECLINE);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 DeclineFriendMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.FRIENDDECLINE, 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 DeclineFriendMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.FRIENDDECLINE, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
*/
|
||||
public DeclineFriendMsg(DeclineFriendMsg msg) {
|
||||
super(Protocol.FRIENDDECLINE);
|
||||
}
|
||||
/**
|
||||
* Copy constructor
|
||||
*/
|
||||
public DeclineFriendMsg(DeclineFriendMsg msg) {
|
||||
super(Protocol.FRIENDDECLINE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied ByteBufferReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
//Do we even want to try this?
|
||||
this.sourceName = reader.getString(); //This is source name.. this friends list must never been updated since launch, not using IDS.
|
||||
this.friendName = reader.getString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied ByteBufferWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putString(this.sourceName);
|
||||
writer.putString(this.friendName);
|
||||
}
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied ByteBufferReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
//Do we even want to try this?
|
||||
this.sourceName = reader.getString(); //This is source name.. this friends list must never been updated since launch, not using IDS.
|
||||
this.friendName = reader.getString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied ByteBufferWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putString(this.sourceName);
|
||||
writer.putString(this.friendName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user