-
Notifications
You must be signed in to change notification settings - Fork 104
Opponent Has Unit That Kills In One Attack
This boolean is responsible by evaluate if the opponent has a unit (in-game) able to eliminate a single unit of the Ally player.
This method returns true if the opponent controls a unit that is able to kill in a single attack a unit of type <type>
controlled by the player. OpponentHasUnitThatKillsUnitInOneAttack can be interpreted (composed) as:
Used in a Loop (For)
OpponentHasUnitThatKillsUnitInOneAttack can appear inside of a loop/if structure. This method returns true if the opponent controls a unit that is able to kill in a single attack the unit <unit>
of type <type>
controlled by the player; the method returns false otherwise. Note that if the unit <unit>
isn't of type <type>
, then the method also returns false. The parameter <unit>
changes the command like the example below:
BooleanDSL bool_example = new BooleanDSL("OpponentHasUnitThatKillsInOneAttack(Light)");
bool_example.translate()
--> print in Java console--> OpponentHasUnitThatKillsInOneAttack(Light)
bool_example.friendly_translate()
--> print in Java console--> OpponentHasUnitThatKillsInOneAttack(Light)
BuilderDSLTreeSingleton.formatedStructuredDSLTreePreOrderPrint((iNodeDSLTree) bool_example);
--> print in Java console--> b->OpponentHasUnitThatKillsInOneAttack(Light)