-
Notifications
You must be signed in to change notification settings - Fork 104
Has Number Of Units Attacking
This boolean is responsible by evaluate if the player has a certain number of units attacking.
This method returns true if the player has <quantity>
or more units of type <type>
attacking the opponent; the method returns false otherwise. HaveQtdUnitsAttacking can be interpreted (composed) as:
Used in a Loop (For)
HaveQtdUnitsAttacking 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("HaveQtdUnitsAttacking(Worker,1)");
bool_example.translate()
--> print in Java console--> HaveQtdUnitsAttacking(Worker,1)
bool_example.friendly_translate()
--> print in Java console--> HaveQtdUnitsAttacking(Worker,1)
BuilderDSLTreeSingleton.formatedStructuredDSLTreePreOrderPrint((iNodeDSLTree) bool_example);
--> print in Java console--> b->HaveQtdUnitsAttacking(Worker,1)