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) if (shouldComputePosition)then(true)
:Position position=image.SearchRobot(); :Position position=image.SearchRobot();
:image.DrawRobot(position); :image.DrawRobot(position);
:MessagePosition msgToSend=new MessagePosition(MESSAGE_CAM_POSITION,position);
:messageToMon!msgToSend;
endif endif
if (arena)then(null) if (arena)then(null)
else else
:image.DrawArena(arena); :image.DrawArena(arena);
endif endif
:messageToMon!image; :MessageImg msgToSend=new MessageImg(MESSAGE_CAM_IMAGE,&image);
:messageToMon!msgToSend;
endif endif
endwhile endwhile
stop stop