Package com.iwolverton.smartbeetle
Class Settings
- java.lang.Object
-
- com.iwolverton.smartbeetle.Settings
-
- Direct Known Subclasses:
SettingsBuilder
public class Settings extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleantHillFrequencyModifierprotected intantHillStartDelayprotected intantHillStartFrequencyprotected intbeetleMaxChargeprotected intbeetleStartAmmoprotected intbeetleStartChargeprotected intchargeCostToMoveprotected intchargeCostToShootprotected intchargeCostToStayprotected intrechargeprotected intspiderFrequencyprotected intspiderStartDelayprotected inttotalAmmo
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SettingsalternateSettingsAbundantAntsAndAmmo()Frequent ants and lots of ammostatic SettingsalternateSettingsNoAnts()No ants.static SettingsdefaultSettings()The default settings.doublegetAntHillFrequencyModifier()(default .9) With each new ant the ant frequency is multiplied by this modifier to determine the next frequency.intgetAntHillStartDelay()(default 80) How many turns until the first ant appears.intgetAntHillStartFrequency()(default 50) After the first ant, how many turns before the next ant.intgetBeetleMaxCharge()(default 100) The maximum charge value the beetle can attain.intgetBeetleStartAmmo()(default 3) The amount of ammo the beetle has at the start of the game.intgetBeetleStartCharge()(default 50) The beetle's charge at the start of the game.intgetChargeCostToMove()(default 2) How much charge is expended in a move action.intgetChargeCostToShoot()(default 2) How much charge is expended in a shoot action.intgetChargeCostToStay()(default 2) How much charge is expended in a stay action (i.e.intgetRecharge()(default 5) When ending a turn on a charging pad, how much charge is added to the beetle's battery? Note: the action cost is still accrued when on the charging pad, so the final charge for a turn will be recharge - action cost.intgetSpiderFrequency()(default 2) Once the spider starts moving, how many turns between moves.intgetSpiderStartDelay()(default 2) How many turns before the spider first starts to move.intgetTotalAmmo()(default 4) The total amount of bead + ammo in the game.
-
-
-
Field Detail
-
antHillStartDelay
protected int antHillStartDelay
-
antHillStartFrequency
protected int antHillStartFrequency
-
antHillFrequencyModifier
protected double antHillFrequencyModifier
-
beetleStartCharge
protected int beetleStartCharge
-
beetleMaxCharge
protected int beetleMaxCharge
-
beetleStartAmmo
protected int beetleStartAmmo
-
totalAmmo
protected int totalAmmo
-
spiderStartDelay
protected int spiderStartDelay
-
spiderFrequency
protected int spiderFrequency
-
chargeCostToMove
protected int chargeCostToMove
-
chargeCostToShoot
protected int chargeCostToShoot
-
chargeCostToStay
protected int chargeCostToStay
-
recharge
protected int recharge
-
-
Constructor Detail
-
Settings
public Settings()
-
Settings
public Settings(Settings from)
-
-
Method Detail
-
defaultSettings
public static Settings defaultSettings()
The default settings. Same as callingnew Settings().
-
alternateSettingsAbundantAntsAndAmmo
public static Settings alternateSettingsAbundantAntsAndAmmo()
Frequent ants and lots of ammo
-
alternateSettingsNoAnts
public static Settings alternateSettingsNoAnts()
No ants. But a faster spider.
-
getAntHillStartDelay
public int getAntHillStartDelay()
(default 80) How many turns until the first ant appears.
-
getAntHillStartFrequency
public int getAntHillStartFrequency()
(default 50) After the first ant, how many turns before the next ant.
-
getAntHillFrequencyModifier
public double getAntHillFrequencyModifier()
(default .9) With each new ant the ant frequency is multiplied by this modifier to determine the next frequency. It should be in the range 0 < x <= 1.
-
getBeetleStartCharge
public int getBeetleStartCharge()
(default 50) The beetle's charge at the start of the game.
-
getBeetleMaxCharge
public int getBeetleMaxCharge()
(default 100) The maximum charge value the beetle can attain.
-
getBeetleStartAmmo
public int getBeetleStartAmmo()
(default 3) The amount of ammo the beetle has at the start of the game.
-
getTotalAmmo
public int getTotalAmmo()
(default 4) The total amount of bead + ammo in the game. When ammo is used it appears immediately as beads on the field.
-
getSpiderStartDelay
public int getSpiderStartDelay()
(default 2) How many turns before the spider first starts to move.
-
getSpiderFrequency
public int getSpiderFrequency()
(default 2) Once the spider starts moving, how many turns between moves. If 3, for example, the spider will pause 2 turns and move on the 3rd.
-
getChargeCostToMove
public int getChargeCostToMove()
(default 2) How much charge is expended in a move action.
-
getChargeCostToShoot
public int getChargeCostToShoot()
(default 2) How much charge is expended in a shoot action.
-
getChargeCostToStay
public int getChargeCostToStay()
(default 2) How much charge is expended in a stay action (i.e. when the beetle takes no action).
-
getRecharge
public int getRecharge()
(default 5) When ending a turn on a charging pad, how much charge is added to the beetle's battery? Note: the action cost is still accrued when on the charging pad, so the final charge for a turn will be recharge - action cost.
-
-