final Entity entity = game.getEntity(entityId); ToHitData toHit = new ToHitData();  if (entity.moved == Entity.MOVE_WALK) { toHit.addModifier(1, "attacker walked"); } else if (entity.moved == Entity.MOVE_RUN) { toHit.addModifier(2, "attacker ran"); } else if (entity.moved == Entity.MOVE_JUMP) { toHit.addModifier(3, "attacker jumped"); }  return toHit;
return getAttackerMovementModifier(game, entityId, game.getEntity(entityId).moved);
    public static ToHitData getAttackerMovementModifier(Game game, int entityId) {        final Entity entity = game.getEntity(entityId);        ToHitData toHit = new ToHitData();                if (entity.moved == Entity.MOVE_WALK) {            toHit.addModifier(1, "attacker walked");        } else if (entity.moved == Entity.MOVE_RUN) {            toHit.addModifier(2, "attacker ran");        } else if (entity.moved == Entity.MOVE_JUMP) {            toHit.addModifier(3, "attacker jumped");        }                return toHit;    }