@Test public void testGenerateWorldChecksumResponse() { byte[] checksum = {2, 4, 6, 8, 10}; Message message = worldServerMessageFactory.generateWorldChecksumResponse(checksum); assertEquals(message.name, "WorldChecksumResponse"); assertEquals(message.getArgument("checksum"), checksum); }
public Message generateWorldChecksumResponse(byte[] checkSum) { Message response = MessageRegistry.getInstance().createMessage("WorldChecksumResponse"); response.setArgument("checksum", checkSum); return response; }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldChecksumResponse(byte[] checkSum) { Message response = MessageRegistry.getInstance().createMessage("WorldChecksumResponse"); response.setArgument("checksum", checkSum); return response; } }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldChecksumResponse(byte[] checkSum) { Message response = MessageRegistry.getInstance().createMessage("WorldChecksumResponse"); response.setArgument("checksum", checkSum); return response; }  }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldChecksumResponse(byte[] checkSum) { Message response = MessageRegistry.getInstance().createMessage("WorldChecksumResponse"); response.setArgument("checksum", checkSum); return response; }  Message generateNewlyVisibleMessage(WorldObject object); List<Message> generateChangeStateMessages(Actor changedActor); Message generateForcedStateMessage(MoveState forcedState); Message generateActorMoveSpeedMessage(double moveSpeed); Message generateNewlyInvisibleMessage(WorldObject object); Message generateWorldLoginResponse(); Message generateWorldFileResponse(byte[] worldFileBytes); Message generateWorldChecksumResponse(byte[] checkSum); }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldChecksumResponse(byte[] checkSum) { Message response = MessageRegistry.getInstance().createMessage("WorldChecksumResponse"); response.setArgument("checksum", checkSum); return response; }  Message generateNewlyVisibleMessage(WorldObject object); List<Message> generateChangeStateMessages(Actor changedActor); Message generateForcedStateMessage(MoveState forcedState); Message generateActorMoveSpeedMessage(double moveSpeed); Message generateNewlyInvisibleMessage(WorldObject object); Message generateWorldLoginResponse(); Message generateWorldFileResponse(byte[] worldFileBytes); Message generateWorldChecksumResponse(byte[] checkSum);  }