Categories > Board > rex_board_squaretx

Introduction

This plugin provides orthogonal or isometric. or staggered physical layout for rex_board plugin.

Links


Categories > Board > rex_board_squaretxIntroductionLinksDependenceUsageConnect to boardLayoutPosition of each cellDirectionsDirection codeTransfer physical position from logical position

Dependence

None

Usage

Connect to board

Assign this object as the parameter in Action:Setup layout in rex_board plugin, to configure this board to be an orthogonal or isometric board.

Layout

The layout type is set at Orientation in properties table, or sets by Action:Set orientation, or Action:Set orientation by number.

Position of each cell

In properties table, (X at (0,0), Y at (0,0)) is the physical position of logical (0,0). Width and Height is the size of cell. Or uses Action:Set position offset, Action:Set cell size to set these properties.


Directions

Property Directions is used to define the directions of neighbors. It will affect the result which related on the information of neighbors, like move-able area and moving path searching in rex_slg_movement plugin, wander result in rex_grid_move behavior.

This property could be changed by Action:Set directions at run-time.

Direction code

These expressions are the code of directions.

These could be used used in Condition:Pick neighbor chess, or Action:Pick neighbor chess in rex_board plugin.


Transfer physical position from logical position

Get physical position from logical position by ( Expression:LXY2PX , Expression:LXY2PY ).