Ajout envoi position

This commit is contained in:
Jean-Remy Hok 2021-04-06 14:43:54 +02:00
parent 445627ec03
commit 0017802e4d

View file

@ -9,12 +9,15 @@ while ()
if (shouldComputePosition)then(true)
:Position position=image.SearchRobot();
:image.DrawRobot(position);
:MessagePosition msgToSend=new MessagePosition(MESSAGE_CAM_POSITION,position);
:messageToMon!msgToSend;
endif
if (arena)then(null)
else
:image.DrawArena(arena);
endif
:messageToMon!image;
:MessageImg msgToSend=new MessageImg(MESSAGE_CAM_IMAGE,&image);
:messageToMon!msgToSend;
endif
endwhile
stop