-
Notifications
You must be signed in to change notification settings - Fork 104
Opponent Has Number Of Units
This boolean is responsible by evaluate if the opponent has a specific number of units.
This method returns true if the opponent controls <quantity>
or more units of type <type>
; returns false otherwise.
OpponentHasNumberOfUnits can be interpreted (composed) as:
Used in a Loop (For)
OpponentHasNumberOfUnits can appear inside of a loop/if structure, however, the boolean can't receive a unit as a parameter, which means that this boolean will be used always as the stand-alone way.
BooleanDSL bool_example = new BooleanDSL("OpponentHasNumberOfUnits(Heavy,1)");
bool_example.translate()
--> print in Java console--> OpponentHasNumberOfUnits(Heavy,1)
bool_example.friendly_translate()
--> print in Java console--> OpponentHasNumberOfUnits(Heavy,1)
BuilderDSLTreeSingleton.formatedStructuredDSLTreePreOrderPrint((iNodeDSLTree) bool_example);
--> print in Java console--> b->OpponentHasNumberOfUnits(Heavy,1)