void reforge_plot_t::create_options()
{
  sim->add_option(opt_int("reforge_plot_iterations", reforge_plot_iterations));
  sim->add_option(opt_float("reforge_plot_target_error", reforge_plot_target_error));
  sim->add_option(opt_int("reforge_plot_step", reforge_plot_step));
  sim->add_option(opt_int("reforge_plot_amount", reforge_plot_amount));
  sim->add_option(opt_string("reforge_plot_stat", reforge_plot_stat_str));
  sim->add_option(opt_bool("reforge_plot_debug", reforge_plot_debug));
}
void plot_t::create_options()
{
  option_t plot_options[] =
  {
    // @option_doc loc=global/scale_factors title="Plots"
    opt_int( "dps_plot_iterations", dps_plot_iterations ),
    opt_int( "dps_plot_points",     dps_plot_points ),
    opt_string( "dps_plot_stat",    dps_plot_stat_str ),
    opt_float( "dps_plot_step",     dps_plot_step ),
    opt_bool( "dps_plot_debug",     dps_plot_debug ),
    opt_bool( "dps_plot_positive", dps_plot_positive ),
    opt_bool( "dps_plot_negative", dps_plot_negative ),
    opt_null()
  };

  option_t::copy( sim -> options, plot_options );
}
void scaling_t::create_options()
{
  option_t scaling_options[] =
  {
    // @option_doc loc=global/scale_factors title="Scale Factors"
    opt_bool( "calculate_scale_factors", calculate_scale_factors ),
    opt_func( "normalize_scale_factors", parse_normalize_scale_factors ),
    opt_bool( "debug_scale_factors", debug_scale_factors ),
    opt_bool( "center_scale_delta", center_scale_delta ),
    opt_float( "scale_delta_multiplier", scale_delta_multiplier ), // multiplies all default scale deltas
    opt_bool( "positive_scale_delta", positive_scale_delta ),
    opt_bool( "scale_lag", scale_lag ),
    opt_float( "scale_factor_noise", scale_factor_noise ),
    opt_float( "scale_strength",  stats.attribute[ ATTR_STRENGTH  ] ),
    opt_float( "scale_agility",   stats.attribute[ ATTR_AGILITY   ] ),
    opt_float( "scale_stamina",   stats.attribute[ ATTR_STAMINA   ] ),
    opt_float( "scale_intellect", stats.attribute[ ATTR_INTELLECT ] ),
    opt_float( "scale_spirit",    stats.attribute[ ATTR_SPIRIT    ] ),
    opt_float( "scale_spell_power", stats.spell_power ),
    opt_float( "scale_attack_power", stats.attack_power ),
    opt_float( "scale_expertise_rating", stats.expertise_rating ),
    opt_float( "scale_hit_rating", stats.hit_rating ),
    opt_float( "scale_crit_rating", stats.crit_rating ),
    opt_float( "scale_haste_rating", stats.haste_rating ),
    opt_float( "scale_mastery_rating", stats.mastery_rating ),
    opt_float( "scale_dodge_rating", stats.dodge_rating ),
    opt_float( "scale_parry_rating", stats.parry_rating ),
    opt_float( "scale_weapon_dps", stats.weapon_dps ),
    opt_float( "scale_weapon_speed", stats.weapon_speed ),
    opt_float( "scale_offhand_weapon_dps", stats.weapon_offhand_dps ),
    opt_float( "scale_offhand_weapon_speed", stats.weapon_offhand_speed ),
    opt_string( "scale_only", scale_only_str ),
    opt_string( "scale_over", scale_over ),
    opt_string( "scale_over_player", scale_over_player ),
    opt_null()
  };

  option_t::copy( sim -> options, scaling_options );
}
Exemple #4
0
void scaling_t::create_options()
{
  sim->add_option(opt_bool("calculate_scale_factors", calculate_scale_factors));
  sim->add_option(opt_func("normalize_scale_factors", parse_normalize_scale_factors));
  sim->add_option(opt_bool("debug_scale_factors", debug_scale_factors));
  sim->add_option(opt_bool("center_scale_delta", center_scale_delta));
  sim->add_option(opt_float("scale_delta_multiplier", scale_delta_multiplier)); // multiplies all default scale deltas
  sim->add_option(opt_bool("positive_scale_delta", positive_scale_delta));
  sim->add_option(opt_bool("scale_lag", scale_lag));
  sim->add_option(opt_float("scale_factor_noise", scale_factor_noise));
  sim->add_option(opt_float("scale_strength", stats.attribute[ATTR_STRENGTH]));
  sim->add_option(opt_float("scale_agility", stats.attribute[ATTR_AGILITY]));
  sim->add_option(opt_float("scale_stamina", stats.attribute[ATTR_STAMINA]));
  sim->add_option(opt_float("scale_intellect", stats.attribute[ATTR_INTELLECT]));
  sim->add_option(opt_float("scale_spirit", stats.attribute[ATTR_SPIRIT]));
  sim->add_option(opt_float("scale_spell_power", stats.spell_power));
  sim->add_option(opt_float("scale_attack_power", stats.attack_power));
  sim->add_option(opt_float("scale_crit_rating", stats.crit_rating));
  sim->add_option(opt_float("scale_haste_rating", stats.haste_rating));
  sim->add_option(opt_float("scale_mastery_rating", stats.mastery_rating));
  sim->add_option(opt_float("scale_multistrike_rating", stats.multistrike_rating));
  sim->add_option(opt_float("scale_readiness_rating", stats.readiness_rating));
  sim->add_option(opt_float("scale_versatility_rating", stats.versatility_rating));
  sim->add_option(opt_float("scale_weapon_dps", stats.weapon_dps));
  sim->add_option(opt_float("scale_offhand_weapon_dps", stats.weapon_offhand_dps));
  sim->add_option(opt_string("scale_only", scale_only_str));
  sim->add_option(opt_string("scale_over", scale_over));
  sim->add_option(opt_string("scale_over_player", scale_over_player));
}
Exemple #5
0
void
gtBaseOpts::add_options ()
{
    m_base_desc.add_options ()
        (OPT_BIND_IP           ",b", opt_string(), "Bind IP.")
        (OPT_CRED_FILE         ",c", opt_string(), "Path/file to credentials file.")
        (OPT_CFG_DIR_DEPRECATED  ",C", opt_string(), "Deprecated use " OPT_RESOURCE_DIR ".")
        (OPT_RESOURCE_DIR      ",R", opt_string(), "Full path to a directory containing static resource files (dhparam.pem).")
        (OPT_ADVERT_IP         ",e", opt_string(), "IP Address advertised.")
        (OPT_ADVERT_PORT       ",f", opt_int(),    "TCP Port advertised.")
        (OPT_INTERNAL_PORT     ",i", opt_string(), "Local IP port to bind on.")
        (OPT_LOGGING           ",l", opt_string(), "Path/file to log file, follow"
                                                   " by the log level.")
        (OPT_RATE_LIMIT        ",r", opt_float(),  "Transfer rate limiter in MB/s.")
        (OPT_TIMESTAMP         ",t",               "Add timestamps to messages"
                                                   " logged to the screen.")
        (OPT_VERBOSE,                opt_int(),    "Set on screen verbosity level.")
        (OPT_INACTIVE_TIMEOUT  ",k", opt_int(),    "Timeout transfers after"
                                                   " inactivity in minutes.")
        (OPT_CURL_NO_VERIFY_SSL,                   "Do not verify SSL certificates"
                                                   " of web services.")
        (OPT_PEER_TIMEOUT,           opt_int(),    "Set libtorrent peer timeout in seconds.")
        (OPT_NO_USER_CFG_FILE,                     "Do not allow users to specify a config file.")
        (OPT_ALLOWED_MODES,          opt_string(), "Allowed modes in this GeneTorrent"
                                                   " installation.")
        (OPT_ALLOWED_SERVERS,        opt_string(), "Allowed IP address ranges for WSI, tracker,"
                                                   " and peer traffic.")
        ;

    if (m_use_path_opt)
    {
        m_base_desc.add_options ()
            (OPT_PATH              ",p", opt_string(), "File system path used for"
                                                   " uploads and downloads.")
            ;
    }

    if (m_use_security_api_opt)
    {
        m_base_desc.add_options ()
            (OPT_SECURITY_API,           opt_string(), "SSL Key Signing URL")
            ;
    }
    add_desc (m_base_desc);

    m_cli_desc.add_options ()
        (OPT_CFG_FILE,               opt_string(), "Path/file to optional config file.")
        (OPT_HELP              ",h",               "Show help and exit.")
        (OPT_VERBOSE_INCR      ",v", accumulator<int>(&global_verbosity),
                                                   "Increase on screen verbosity level.")
        (OPT_VERSION,                              "Show version and exit.")
        ;
    if (m_use_alt_storage_opts)
    {
        m_cli_desc.add_options ()
            (OPT_NULL_STORAGE,                     "Enable use of null storage.")
            (OPT_ZERO_STORAGE,                     "Enable use of zero storage.")
            ;
    }
    add_desc (m_cli_desc, VISIBLE, CLI_ONLY);
}