Categories > Board > rex_logicmask

Introduction

Display a logical area on a very large board.

Links


Categories > Board > rex_logicmaskIntroductionLinksDependenceUsageConceptDefine maskMove maskExampleDefine maskMove maskMore samples

Dependence

Optional:

Usage

Concept

Move mask Enter: Current - Previous Exit: Previous - Current Define maskMove mask:Previous --> Current----Action:Put maskEnter to new tiles----+Condition:For each entered LXYExit from tiles----+Condition:For each exit LXYTile at(Expression:CurLX, Expression:CurLY, 0)mask value: Expression:CurValueRemove tile----Board Action:Destroy chessTile at(Expression:CurLX, Expression:CurLY, 0),mask value: Expression:CurValueCreate tile----Board Action:Create tileCreate mask:----Action:Flood fill, orAction:Fill a rectangle,...

Defines a mask area then moves it, to get new covered (entered) tiles and uncovered (exited) tiles.

Define mask

Move mask

Call Action:Put mask to move this mask, to get new covered (entered) tiles and uncovered (exited) tiles.


Example

Define mask

Fills mask by a rectangle at

The mask will become

(-1, -1)    (0, -1)    (1, -1)
(-1,  0)    (0,  0)    (1,  0)
(-1,  1)    (0,  1)    (1,  1)

Move mask

Then put this mask to logic position (50, 50) ,

(49, 49)    (50, 49)    (51, 49)
(49, 50)    (50, 50)    (51, 50)
(49, 51)    (50, 51)    (51, 51)

Put this mask to logic position (51, 50) ,

(50, 49)    (51, 49)    (52, 49)
(50, 50)    (51, 50)    (52, 50)
(50, 51)    (51, 51)    (52, 51)
(52, 49) , (52, 50) , (52, 51)
(49, 49) , (49, 50) , (49, 51)

More samples

Using logic mask with rex_board Move on a very large board