This code fails with a: main.agc:28: error: Cannot convert type "move" to "animal"
If I remove the Animal type it compiles and if I add another type it complains about that one instead.
TYPE Point
X as integer
Y as Integer
ENDTYPE
TYPE Move
Start as Point
Dest as Point
Score as Integer
ENDTYPE
TYPE Animal
Kind as Integer
X as Integer
Y as Integer
Sprite as Integer
Score as Integer
ENDTYPE
function paint_valid_sheep_moves(index as integer)
moves as Move[3]
paint_valid_moves(moves)
endfunction
function paint_valid_moves(in_moves as Move[])
endfunction