diff options
Diffstat (limited to 'sources/protocols/implementations/DummyProtocol.java')
| -rw-r--r-- | sources/protocols/implementations/DummyProtocol.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sources/protocols/implementations/DummyProtocol.java b/sources/protocols/implementations/DummyProtocol.java index a7beb19..50690b3 100644 --- a/sources/protocols/implementations/DummyProtocol.java +++ b/sources/protocols/implementations/DummyProtocol.java @@ -1,20 +1,41 @@ +/* + * VS is (c) 2008 by Paul C. Buetow + * vs@dev.buetow.org + */ package protocols.implementations; import protocols.VSProtocol; import core.VSMessage; +// TODO: Auto-generated Javadoc +/** + * The Class DummyProtocol. + */ public class DummyProtocol extends VSProtocol { + + /** + * Instantiates a new dummy protocol. + */ public DummyProtocol() { setClassname(getClass().toString()); } + /* (non-Javadoc) + * @see events.VSEvent#onInit() + */ protected void onInit() { } + /* (non-Javadoc) + * @see protocols.VSProtocol#onClientReset() + */ protected void onClientReset() { logg("onClientReset()"); } + /* (non-Javadoc) + * @see protocols.VSProtocol#onClientStart() + */ protected void onClientStart() { logg("onClientStart()"); @@ -26,6 +47,9 @@ public class DummyProtocol extends VSProtocol { sendMessage(message); } + /* (non-Javadoc) + * @see protocols.VSProtocol#onClientRecv(core.VSMessage) + */ protected void onClientRecv(VSMessage recvMessage) { logg("onClientRecv("+recvMessage+")"); @@ -35,14 +59,23 @@ public class DummyProtocol extends VSProtocol { float f = recvMessage.getFloat("A float"); } + /* (non-Javadoc) + * @see protocols.VSProtocol#onServerReset() + */ protected void onServerReset() { logg("onClientReset()"); } + /* (non-Javadoc) + * @see protocols.VSProtocol#onServerRecv(core.VSMessage) + */ protected void onServerRecv(VSMessage recvMessage) { logg("onServerRecv("+recvMessage+")"); } + /* (non-Javadoc) + * @see protocols.VSProtocol#toString() + */ public String toString() { return super.toString() + "; Dummy Test"; } |
