Ajout envoi position
This commit is contained in:
parent
445627ec03
commit
0017802e4d
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue