Android Open Source - ShadowCraft_Android Settings






From Project

Back to project page ShadowCraft_Android.

License

The source code is released under:

GNU General Public License

If you think the Android project ShadowCraft_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package rogue;
//from w ww .  j  a v a  2 s  .  co m
import java.util.Map;

/**
 * Settings object for AldrianasRogueDamageCalculator.
 */
public class Settings {

    private Cycle cycle;
    private double time_in_execute_range = .35;
    private Boolean tricks_on_cooldown = true;
    private double response_time = .5;
    private String mh_poison = "ip";
    private String oh_poison = "dp";
    private double duration = 300;

    public Settings(Map<String, Object> settings) {
        this.cycle = (Cycle) settings.get("cycle");
        for (String setting : settings.keySet()) {
            if (setting.equals("time_in_execute_range"))
                this.time_in_execute_range = (Double) settings.get(setting);
            else if (setting.equals("tricks_on_cooldown"))
                this.tricks_on_cooldown = (Boolean) settings.get(setting);
            else if (setting.equals("response_time"))
                this.response_time = (Double) settings.get(setting);
            else if (setting.equals("mh_poison"))
                this.mh_poison = (String) settings.get(setting);
            else if (setting.equals("oh_poison"))
                this.oh_poison = (String) settings.get(setting);
            else if (setting.equals("duration"))
                this.duration = (Double) settings.get(setting);
        }
    }

    public Cycle cycle() {
        return this.cycle;
    }

    public double time_in_execute_range() {
        return this.time_in_execute_range;
    }

    public Boolean tricks_on_cooldown() {
        return this.tricks_on_cooldown;
    }

    public double response_time() {
        return this.response_time;
    }

    public String mh_poison() {
        return this.mh_poison;
    }

    public String oh_poison() {
        return this.oh_poison;
    }

    public double duration() {
        return this.duration;
    }

}




Java Source Code List

calcs.ArmorMitigation.java
calcs.DamageCalculator.java
classes.Buffs.java
classes.Data.java
classes.GearBuffs.java
classes.Glyphs.java
classes.Proc.java
classes.ProcsList.java
classes.Race.java
classes.Stats.java
classes.Talents.java
classes.Weapon.java
com.shadowcraft.android.APP.java
com.shadowcraft.android.Bnet.java
com.shadowcraft.android.CharHandler.java
com.shadowcraft.android.DataBaseHelper.java
com.shadowcraft.android.Data.java
com.shadowcraft.android.Gear.java
com.shadowcraft.android.IconHandler.java
com.shadowcraft.android.ItemView.java
com.shadowcraft.android.RogueBackend.java
com.shadowcraft.android.ShadowcraftMain.java
com.shadowcraft.android.Stat.java
com.shadowcraft.android.TalentsData.java
com.shadowcraft.android.Talents.java
core.InvalidInputException.java
core.InvalidLevelException.java
core.util.java
rogue.AldrianasRogueDamageCalculator.java
rogue.Cycle.java
rogue.RogueDamageCalculator.java
rogue.RogueGlyphs.java
rogue.RogueModelerData.java
rogue.RogueTalents.java
rogue.Settings.java