3 creation make
, make_server_bottom
, make_server_top
5 tile_server_top
: INTEGER is 1
6 tile_server_bottom
: INTEGER is 2
7 tile_normal
: INTEGER is 3
8 tile_terminal
: INTEGER is 4
12 neighbour
: ARRAY
[BOOLEAN]
16 put_xy(new_x
, new_y
: INTEGER) is
22 is_connected
: BOOLEAN
34 neighbour_count
: INTEGER
43 if neighbour
.item(dir
) then
44 neighbour_count
:= neighbour_count
+ 1
49 if neighbour_count
= 1 and then
50 type
= tile_normal
then
58 !!neighbour
.make(1, 4)
63 type
:= tile_server_bottom
64 !!neighbour
.make(1, 4)
69 type
:= tile_server_top
70 !!neighbour
.make(1, 4)