@Test public void testGenerateActorMoveSpeedMessage() { Message message = worldServerMessageFactory.generateActorMoveSpeedMessage(Actor.DEFAULT_MOVE_SPEED); assertEquals(message.name, "ActorMoveSpeed"); assertEquals(message.getArgument("moveSpeed"), Actor.DEFAULT_MOVE_SPEED); }
public Message generateActorMoveSpeedMessage(double moveSpeed) { Message stepLengthMessage = MessageRegistry.getInstance().createMessage("ActorMoveSpeed"); stepLengthMessage.setArgument("moveSpeed", moveSpeed); return stepLengthMessage; }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateActorMoveSpeedMessage(double moveSpeed) { Message stepLengthMessage = MessageRegistry.getInstance().createMessage("ActorMoveSpeed"); stepLengthMessage.setArgument("moveSpeed", moveSpeed); return stepLengthMessage; } }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateActorMoveSpeedMessage(double moveSpeed) { Message stepLengthMessage = MessageRegistry.getInstance().createMessage("ActorMoveSpeed"); stepLengthMessage.setArgument("moveSpeed", moveSpeed); return stepLengthMessage; }  }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateActorMoveSpeedMessage(double moveSpeed) { Message stepLengthMessage = MessageRegistry.getInstance().createMessage("ActorMoveSpeed"); stepLengthMessage.setArgument("moveSpeed", moveSpeed); return stepLengthMessage; }  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 generateActorMoveSpeedMessage(double moveSpeed) { Message stepLengthMessage = MessageRegistry.getInstance().createMessage("ActorMoveSpeed"); stepLengthMessage.setArgument("moveSpeed", moveSpeed); return stepLengthMessage; }  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);  }