Package megamek.client.bot.princess
Class FireControlState
java.lang.Object
megamek.client.bot.princess.FireControlState
This class is a data structure meant to hold Fire Control related state, to keep the FireControl class relatively
stateless.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalTarget(Targetable target) Add a single value to the additional targets list.voidvoidvoidClears data that shouldn't persist phase-to-phasebooleancommanderCached(Entity entity) The list of "additional targets", such as buildings, bridges and arbitrary hexes that the bot will want to shootAccessor for the data structure containing a mapping between entities and whether or not they have indirect fire capability as in LRMs.getWeaponRanges(boolean airborneTarget) booleanisCommander(Entity entity) booleanisSubCommander(Entity entity) voidsetAdditionalTargets(List<Targetable> value) Directly sets the list of "additional targets" to a value.voidsetCommander(Entity entity, boolean value) voidsetSubCommander(Entity entity, boolean value) booleansubCommanderCached(Entity entity)
-
Constructor Details
-
FireControlState
public FireControlState()
-
-
Method Details
-
getAdditionalTargets
The list of "additional targets", such as buildings, bridges and arbitrary hexes that the bot will want to shoot- Returns:
- A new list from the additional target list.
-
setAdditionalTargets
Directly sets the list of "additional targets" to a value.- Parameters:
value- The new list of additional targets.
-
addAdditionalTarget
Add a single value to the additional targets list. -
clearEntityIDFStates
public void clearEntityIDFStates() -
getEntityIDFStates
Accessor for the data structure containing a mapping between entities and whether or not they have indirect fire capability as in LRMs. -
getOrderedFiringEntities
-
clearOrderedFiringEntities
public void clearOrderedFiringEntities() -
getWeaponRanges
-
subCommanderCached
-
commanderCached
-
isSubCommander
-
isCommander
-
setSubCommander
-
setCommander
-
clearTransientData
public void clearTransientData()Clears data that shouldn't persist phase-to-phase
-