mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-19 23:56:28 +01:00
25 lines
556 B
Java
25 lines
556 B
Java
package com.eu.habbo.messages.outgoing;
|
|
|
|
import com.eu.habbo.messages.ServerMessage;
|
|
|
|
public abstract class MessageComposer {
|
|
|
|
private ServerMessage composed;
|
|
protected final ServerMessage response;
|
|
|
|
protected MessageComposer() {
|
|
this.composed = null;
|
|
this.response = new ServerMessage();
|
|
}
|
|
|
|
protected abstract ServerMessage composeInternal();
|
|
|
|
public ServerMessage compose() {
|
|
if (this.composed == null) {
|
|
this.composed = this.composeInternal();
|
|
}
|
|
|
|
return this.composed;
|
|
}
|
|
|
|
} |