@@ -0,0 +1,1735 @@
+package comlib.provider;%0A%0A%0Aimport comlib.event.CivilianMessageEvent;%0Aimport comlib.message.DummyMessage;%0Aimport comlib.manager.RadioConfig;%0Aimport comlib.manager.VoiceConfig;%0Aimport comlib.util.BitOutputStream;%0Aimport comlib.util.BitStreamReader;%0A%0A%0Apublic class DummyMessageProvider extends MessageProvider%3CDummyMessage, DummyMessageEvent%3E%0A%7B%0A%0A%09public DummyMessageProvider(int id)%0A%09%7B%0A%09%09super(id);%0A%09%7D%0A%0A%09protected void writeMessage(RadioConfig config, BitOutputStream bos, DummyMessage msg)%0A%09%7B%0A%09%7D%0A%0A%09protected void writeMessage(VoiceConfig config, StringBuilder sb, DummyMessage msg)%0A%09%7B%0A%09%7D%0A%0A%09protected DummyMessage createMessage(RadioConfig config, int time, BitStreamReader bsr)%0A%09%7B%0A%09%09return new DummyMessage(time, -1, -1);%0A%09%7D%0A%0A%09protected DummyMessage createMessage(VoiceConfig config, int time, int ttl, String%5B%5D datas, int next)%0A%09%7B%0A%09%09try %7B%0A%09%09%09// return null;//new DummyMessage(time, ttl, -1);%0A%09%09%09return new DummyMessage(time, ttl, -1);%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%09// public CommunicationMessage create(RadioConfig config, BitStreamReader bsr) %7B%0A%09//     int time = bsr.getBits(config.getSizeOfTime());%0A%09//     DummyMessage msg = this.createMessage(config, time, bsr);%0A%09//     //CommunicationMessage msg = this.createMessage(config, time, bsr);%0A%09//     this.event.receivedRadio(msg);%0A%09//     return msg;%0A%09// %7D%0A%09//%0A%09// public CommunicationMessage create(VoiceConfig config, String%5B%5D datas) %7B%0A%09//     int time = Integer.parseInt(datas%5B0%5D);%0A%09//     int ttl  = Integer.parseInt(datas%5B1%5D);%0A%09//     DummyMessage msg = this.createMessage(config, time, ttl, datas, 2);%0A%09//     //CommunicationMessage msg = this.createMessage(config, time, ttl, datas, 2);%0A%09//     this.event.receivedVoice(msg);%0A%09//     return msg;%0A%09// %7D%0A%7D%0A

update Comlib