Skip to content

Is Player Base In Position

Rubens de Oliveira Moraes Filho edited this page Apr 29, 2021 · 2 revisions

This boolean is responsible by evaluate if the player is located in a specific position in the map.

Stand-alone application

This method returns true if the player's base is in position <position>, which can be either left, right, up, or down, as shown in the image below. IsPlayerBaseInPosition can be interpreted (composed) as:

IsPlayerBaseInPosition(<position>)

Directions

Used in a Loop (For)

IsPlayerBaseInPosition 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.


In code (how to creat one)

BooleanDSL bool_example = new BooleanDSL("IsPlayerBaseInPosition(Left)");

By translate method

bool_example.translate() --> print in Java console--> IsPlayerBaseInPosition(Left)

By friendly translate method

bool_example.friendly_translate() --> print in Java console--> IsPlayerBaseInPosition(Left)

By formated Structured DSL Tree Pre-Order Print method

BuilderDSLTreeSingleton.formatedStructuredDSLTreePreOrderPrint((iNodeDSLTree) bool_example); --> print in Java console--> b->IsPlayerBaseInPosition(Left)

Clone this wiki locally