Package megamek.client.bot.princess
Interface IHonorUtil
- All Known Implementing Classes:
HonorUtil
public interface IHonorUtil
- Since:
- 9/5/14 2:48 PM
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckEnemyBroken(Targetable target, boolean forcedWithdrawal) Checks the givenTargetableto see if it should be counted as broken:
Forced Withdrawal is turned on
Given unit is CrippledbooleanbooleanisEnemyBroken(int targetId, int playerId, boolean forcedWithdrawal) Indicates whether the identified unit can be considered broken.booleanisEnemyDishonored(int playerId) Indicates whether the identified player is on the dishonored enemies list.voidsetEnemyDishonored(int playerId) Adds the identified player to the dishonored enemies list.
-
Method Details
-
isEnemyBroken
boolean isEnemyBroken(int targetId, int playerId, boolean forcedWithdrawal) Indicates whether the identified unit can be considered broken.- Parameters:
targetId- The target to be checked.playerId- The ID of the player owning the target.- Returns:
- TRUE if the unit is on the broken units list without being on the honor less enemies list.
-
isEnemyDishonored
boolean isEnemyDishonored(int playerId) Indicates whether the identified player is on the dishonored enemies list.- Parameters:
playerId- The ID of the player to be checked.- Returns:
- TRUE if the player is on the dishonored enemies list.
-
setEnemyDishonored
void setEnemyDishonored(int playerId) Adds the identified player to the dishonored enemies list.- Parameters:
playerId- The ID of the player to be added.
-
checkEnemyBroken
Checks the givenTargetableto see if it should be counted as broken:
Forced Withdrawal is turned on
Given unit is Crippled- Parameters:
target- The unit to be checked.forcedWithdrawal- Set TRUE if the Forced Withdrawal rule is in effect.
-
getDishonoredEnemies
-
iAmAPirate
boolean iAmAPirate()
-