megamek.client.bot
Class AttackOption

java.lang.Object
  extended by megamek.common.TargetRoll
      extended by megamek.common.ToHitData
          extended by megamek.client.bot.AttackOption
All Implemented Interfaces:
java.io.Serializable

public class AttackOption
extends ToHitData

See Also:
Serialized Form

Nested Class Summary
(package private) static class AttackOption.Sorter
           
 
Field Summary
 int ammoLeft
           
 double expected
           
 int heat
           
 double odds
           
 double primary_expected
           
 double primary_odds
           
 CEntity target
           
 ToHitData toHit
           
 java.lang.String use_mode
           
 double value
           
 Mounted weapon
           
 
Fields inherited from class megamek.common.ToHitData
HIT_ABOVE, HIT_BELOW, HIT_KICK, HIT_NORMAL, HIT_PARTIAL_COVER, HIT_PUNCH, HIT_SWARM, HIT_SWARM_CONVENTIONAL, HIT_UNDERWATER, SIDE_FRONT, SIDE_FRONTLEFT, SIDE_FRONTRIGHT, SIDE_LEFT, SIDE_RANDOM, SIDE_REAR, SIDE_REARLEFT, SIDE_REARRIGHT, SIDE_RIGHT
 
Fields inherited from class megamek.common.TargetRoll
AUTOMATIC_FAIL, AUTOMATIC_SUCCESS, CHECK_FALSE, IMPOSSIBLE
 
Constructor Summary
AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit, int sec_mod)
           
 
Method Summary
 
Methods inherited from class megamek.common.ToHitData
getCover, getHitTable, getMoS, getSideTable, getTableDesc, setCover, setHitTable, setMoS, setSideTable
 
Methods inherited from class megamek.common.TargetRoll
addModifier, addModifier, addModifier, append, append, getCumulativePlainDesc, getDesc, getLastPlainDesc, getPlainDesc, getValue, getValueAsString, removeAutos, removeAutos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

public CEntity target

value

public double value

weapon

public Mounted weapon

toHit

public ToHitData toHit

odds

public double odds

primary_odds

public double primary_odds

heat

public int heat

expected

public double expected

primary_expected

public double primary_expected

ammoLeft

public int ammoLeft

use_mode

public java.lang.String use_mode
Constructor Detail

AttackOption

public AttackOption(CEntity target,
                    Mounted weapon,
                    double value,
                    ToHitData toHit,
                    int sec_mod)