From b148cc6aabad27b218b2a1cfbe270aac4a8799c7 Mon Sep 17 00:00:00 2001 From: MrSimbax Date: Mon, 27 Jul 2015 14:32:27 +0200 Subject: [PATCH] Add an info about arrays and Any in radar documentation --- help/cbot/E/radar.txt | 16 ++++-- help/cbot/po/cbot.pot | 126 +++++++++++++++++++++++++++++------------- help/cbot/po/de.po | 126 +++++++++++++++++++++++++++++------------- help/cbot/po/fr.po | 126 +++++++++++++++++++++++++++++------------- help/cbot/po/pl.po | 126 +++++++++++++++++++++++++++++------------- help/cbot/po/ru.po | 126 +++++++++++++++++++++++++++++------------- 6 files changed, 452 insertions(+), 194 deletions(-) diff --git a/help/cbot/E/radar.txt b/help/cbot/E/radar.txt index d16fa639..2d5a1574 100644 --- a/help/cbot/E/radar.txt +++ b/help/cbot/E/radar.txt @@ -12,15 +12,23 @@ Write in brackets the \l;name of the object\u cbot\category; that you look for. \n; \b;For specialists Syntax: -\s;\c;radar ( category, angle, focus, min, max, way );\n; +\s;\c;radar ( cat, angle, focus, min, max, sens );\n; Detects an object according to several parameters. \image radar1 8 8; Seen from above, the purple zone corresponds to the zone where objects will be detected. -\t;category: \c;\l;int\u cbot\int;\n; -\l;Category\u cbot\category; of the objects that should be detected. For example, when you are looking for an ant, write \c;radar (AlienAnt)\n;. +\t;cat: \c;\l;int\u cbot\int;\n; +o \l;Category\u cbot\category; of the objects that should be detected. For example, when you are looking for an ant, write \c;radar(AlienAnt)\n;. +o \l;Array\u cbot\array; of categories of the objects that should be detected. For example, when you are looking only for grabbers: +\c;\s;int bots[4]; +\s;bots[0] = WheeledGrabber; +\s;bots[1] = TrackedGrabber; +\s;bots[2] = WingedGrabber; +\s;bots[3] = LeggedGrabber; +\s;object nearestGrabber = radar(bots);\n; +o Keyword \const;Any\norm; if you are looking for any object. \t;angle: \c;\l;float\u cbot\float;\n; (default value\c;0\n;) Direction that the radar is facing, in degrees. @@ -37,7 +45,7 @@ Minimum detection distance, in meters. Objects that are closer than the minimum \t;max: \c;\l;float\u cbot\float;\n; (Default value\c;1000\n;) Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. -\t;way: \c;\l;float\u cbot\float;\n; (default value\c;1\n;) +\t;sens: \c;\l;float\u cbot\float;\n; (default value\c;1\n;) Determines which way the objects are detected. With value \c;1\n;, returns the closest object found in the specified zone. With value \c;-1\n;, the farthest object in the zone will be returned. \t;Return value: \c;\l;object\u cbot\object;\n; diff --git a/help/cbot/po/cbot.pot b/help/cbot/po/cbot.pot index daf8d63b..308ec586 100644 --- a/help/cbot/po/cbot.pot +++ b/help/cbot/po/cbot.pot @@ -53,13 +53,13 @@ msgid "Time in seconds." msgstr "" #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:58 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:66 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "" #. type: Plain text -#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:59 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 +#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:67 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 #, no-wrap msgid "Programming, types and categories." msgstr "" @@ -3107,12 +3107,6 @@ msgid "" "item = radar(AlienAnt);" msgstr "" -#. type: Source code -#: ../E/radar.txt:15 -#, no-wrap -msgid "radar ( category, angle, focus, min, max, way );" -msgstr "" - #. type: Plain text #: ../E/radar.txt:17 #, no-wrap @@ -3132,25 +3126,19 @@ msgid "Seen from above, the purple zone corresponds to the zone where objects wi msgstr "" #. type: \t; header -#: ../E/radar.txt:22 ../E/search.txt:7 +#: ../E/search.txt:7 #, no-wrap msgid "category: int" msgstr "" -#. type: Plain text -#: ../E/radar.txt:23 -#, no-wrap -msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " -msgstr "" - #. type: \t; header -#: ../E/radar.txt:25 +#: ../E/radar.txt:33 #, no-wrap msgid "angle: float (default value0)" msgstr "" #. type: Plain text -#: ../E/radar.txt:26 +#: ../E/radar.txt:34 #, no-wrap msgid "" "Direction that the radar is facing, in degrees. \n" @@ -3160,79 +3148,73 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/radar.txt:31 +#: ../E/radar.txt:39 #, no-wrap msgid "focus: float (default value360)" msgstr "" #. type: Plain text -#: ../E/radar.txt:32 +#: ../E/radar.txt:40 #, no-wrap msgid "Opening angle of the radar, in degrees. " msgstr "" #. type: \t; header -#: ../E/radar.txt:34 +#: ../E/radar.txt:42 #, no-wrap msgid "min: float (default value 0)" msgstr "" #. type: Plain text -#: ../E/radar.txt:35 +#: ../E/radar.txt:43 #, no-wrap msgid "Minimum detection distance, in meters. Objects that are closer than the minimum distance will not be detected. " msgstr "" #. type: \t; header -#: ../E/radar.txt:37 +#: ../E/radar.txt:45 #, no-wrap msgid "max: float (Default value1000)" msgstr "" #. type: Plain text -#: ../E/radar.txt:38 +#: ../E/radar.txt:46 #, no-wrap msgid "Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. " msgstr "" -#. type: \t; header -#: ../E/radar.txt:40 -#, no-wrap -msgid "way: float (default value1)" -msgstr "" - #. type: Plain text -#: ../E/radar.txt:41 +#: ../E/radar.txt:49 #, no-wrap msgid "Determines which way the objects are detected. With value 1, returns the closest object found in the specified zone. With value -1, the farthest object in the zone will be returned. " msgstr "" #. type: \t; header -#: ../E/radar.txt:43 ../E/retobj.txt:10 ../E/search.txt:13 +#: ../E/radar.txt:51 ../E/retobj.txt:10 ../E/search.txt:13 #, no-wrap msgid "Return value: object" msgstr "" #. type: Plain text -#: ../E/radar.txt:44 +#: ../E/radar.txt:52 #, no-wrap msgid "Returns the first object found that corresponds to the specified category in the specified zone. If no object was found, returns the value null." msgstr "" #. type: \t; header -#: ../E/cond.txt:21 ../E/radar.txt:46 +#: ../E/cond.txt:21 ../E/radar.txt:54 #, no-wrap msgid "Remark" msgstr "" #. type: Plain text -#: ../E/radar.txt:47 +#: ../E/radar.txt:55 #, no-wrap msgid "You do not have to give all the parameters. Here are two examples of instructions that are equivalent: " msgstr "" #. type: Source code -#: ../E/radar.txt:49 +#: ../E/radar.txt:57 #, no-wrap msgid "" "\tradar(Titanium, 0, 360, 0, 1000);\n" @@ -3240,7 +3222,7 @@ msgid "" msgstr "" #. type: Source code -#: ../E/radar.txt:52 +#: ../E/radar.txt:60 #, no-wrap msgid "" "\tradar(Titanium, 0, 90, 0, 1000);\n" @@ -3248,7 +3230,7 @@ msgid "" msgstr "" #. type: Plain text -#: ../E/radar.txt:55 +#: ../E/radar.txt:63 #, no-wrap msgid "" "When one or more parameters are not specified, the default values indicated above are used instead; only the first parameter is compulsory.\n" @@ -5272,7 +5254,7 @@ msgid "Tells the robot to build a building using a titanium cube placed on a fla msgstr "" #. type: \t; header -#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 +#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 ../E/radar.txt:22 #, no-wrap msgid "cat: int" msgstr "" @@ -6740,6 +6722,74 @@ msgstr "" msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." msgstr "" +#. type: Source code +#: ../E/radar.txt:15 +#, no-wrap +msgid "radar ( cat, angle, focus, min, max, sens );" +msgstr "" + +#. type: \t; header +#: ../E/radar.txt:48 +#, no-wrap +msgid "sens: float (default value1)" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:24 +#, no-wrap +msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:23 +#, no-wrap +msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar(AlienAnt). " +msgstr "" + +#. type: Plain text +#: ../E/radar.txt:25 +#, no-wrap +msgid "int bots[4];" +msgstr "" + +#. type: Source code +#: ../E/radar.txt:26 +#, no-wrap +msgid "" +"bots[0] = WheeledGrabber;\n" +"bots[1] = TrackedGrabber;\n" +"bots[2] = WingedGrabber;\n" +"bots[3] = LeggedGrabber;\n" +"object nearestGrabber = radar(bots);" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:31 +#, no-wrap +msgid "Keyword Any if you are looking for any object." +msgstr "" + +#~ msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " +#~ msgstr "" + +#~ msgid "object item; // variable declaration" +#~ msgstr "" + +#~ msgid "" +#~ "\n" +#~ "// Look for the closest ant\n" +#~ "item = radar(AlienAnt);" +#~ msgstr "" + +#~ msgid "Array of categories of the objects that should be detected. For example, when you are looking only for tracked bots:" +#~ msgstr "" + +#~ msgid "radar ( category, angle, focus, min, max, way );" +#~ msgstr "" + +#~ msgid "way: float (default value1)" +#~ msgstr "" + #~ msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." #~ msgstr "" diff --git a/help/cbot/po/de.po b/help/cbot/po/de.po index f6a56a80..7bfdb9c6 100644 --- a/help/cbot/po/de.po +++ b/help/cbot/po/de.po @@ -53,13 +53,13 @@ msgid "Time in seconds." msgstr "Zeit in Sekunden." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:58 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:66 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Siehe auch" #. type: Plain text -#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:59 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 +#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:67 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 #, no-wrap msgid "Programming, types and categories." msgstr "Die CBOT-Sprache, Variablentypen und Kategorien." @@ -3632,12 +3632,6 @@ msgstr "" "// sucht die nächste Ameise\n" "item = radar(AlienAnt);" -#. type: Source code -#: ../E/radar.txt:15 -#, no-wrap -msgid "radar ( category, angle, focus, min, max, way );" -msgstr "radar ( kategorie, winkel, öffnung, min, max, richtung );" - #. type: Plain text #: ../E/radar.txt:17 #, no-wrap @@ -3657,25 +3651,19 @@ msgid "Seen from above, the purple zone corresponds to the zone where objects wi msgstr "Von oben gesehen, entspricht die lila Zone der Zone, wo nach dem Objekt gesucht wird. " #. type: \t; header -#: ../E/radar.txt:22 ../E/search.txt:7 +#: ../E/search.txt:7 #, no-wrap msgid "category: int" msgstr "kategorie: int" -#. type: Plain text -#: ../E/radar.txt:23 -#, no-wrap -msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " -msgstr "Karegorie des gesuchten Objekts. Wenn Sie z.B. nach einer Ameise suchen, schreiben Sie radar(AlienAnt). Wenn Sie radar(0) schreiben, sucht das Radar nach irgendeinem Objekt, ob Feind, Batterie, Kristall, Baum oder Ruine usw. Dies ist vor allem nützlich, um nach einem Hindernis auf dem Weg eines Roboters zu suchen. Testen Sie dann (Name der Variable).category um zu erfahren, was das Radar gefunden hat." - #. type: \t; header -#: ../E/radar.txt:25 +#: ../E/radar.txt:33 #, no-wrap msgid "angle: float (default value0)" msgstr "winkel: float (Standardwert 0)" #. type: Plain text -#: ../E/radar.txt:26 +#: ../E/radar.txt:34 #, no-wrap msgid "" "Direction that the radar is facing, in degrees. \n" @@ -3689,73 +3677,67 @@ msgstr "" " 90 -> das Radar schaut im rechten Winkel nach links" #. type: \t; header -#: ../E/radar.txt:31 +#: ../E/radar.txt:39 #, no-wrap msgid "focus: float (default value360)" msgstr "öffnung: float (Standardwert360)" #. type: Plain text -#: ../E/radar.txt:32 +#: ../E/radar.txt:40 #, no-wrap msgid "Opening angle of the radar, in degrees. " msgstr "Öffnungswinkel des Radars, in Grad." #. type: \t; header -#: ../E/radar.txt:34 +#: ../E/radar.txt:42 #, no-wrap msgid "min: float (default value 0)" msgstr "min: float (Standardwert 0)" #. type: Plain text -#: ../E/radar.txt:35 +#: ../E/radar.txt:43 #, no-wrap msgid "Minimum detection distance, in meters. Objects that are closer than the minimum distance will not be detected. " msgstr "Minimale Suchdistanz in Metern. Objekte, die näher als die minimale Distanz sind, werden nicht gefunden." #. type: \t; header -#: ../E/radar.txt:37 +#: ../E/radar.txt:45 #, no-wrap msgid "max: float (Default value1000)" msgstr "max: float (Standardwert1000)" #. type: Plain text -#: ../E/radar.txt:38 +#: ../E/radar.txt:46 #, no-wrap msgid "Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. " msgstr "Maximale Suchdistanz in Metern. Objekte, die ferner als die maximale Distanz sind, werden nicht gefunden." -#. type: \t; header -#: ../E/radar.txt:40 -#, no-wrap -msgid "way: float (default value1)" -msgstr "richtung: float (Standardwert 1)" - #. type: Plain text -#: ../E/radar.txt:41 +#: ../E/radar.txt:49 #, no-wrap msgid "Determines which way the objects are detected. With value 1, returns the closest object found in the specified zone. With value -1, the farthest object in the zone will be returned. " msgstr "Bestimmt, in welcher Richtung die Objekte gesucht werden sollen. Mit dem Wert 1 wird das nächste Objekt in der Suchzone zurückgegeben. Mit dem Wert -1 wird das am weitesten entfernte Objekt in der Zone zurückgegeben." #. type: \t; header -#: ../E/radar.txt:43 ../E/retobj.txt:10 ../E/search.txt:13 +#: ../E/radar.txt:51 ../E/retobj.txt:10 ../E/search.txt:13 #, no-wrap msgid "Return value: object" msgstr "Rückgabe: object" #. type: Plain text -#: ../E/radar.txt:44 +#: ../E/radar.txt:52 #, no-wrap msgid "Returns the first object found that corresponds to the specified category in the specified zone. If no object was found, returns the value null." msgstr "Gibt das erste Objekt zurück, das der gewünschten Kategorie in der angegebenen Zone entspricht. Wenn kein Objekt gefunden wurde, wird der Wert null zurückgegeben." #. type: Plain text -#: ../E/radar.txt:47 +#: ../E/radar.txt:55 #, no-wrap msgid "You do not have to give all the parameters. Here are two examples of instructions that are equivalent: " msgstr "Sie müssen nicht alle Parameter angeben. Hier sind zwei Beispiele, die jeweils gleichwertig sind:" #. type: Source code -#: ../E/radar.txt:49 +#: ../E/radar.txt:57 #, no-wrap msgid "" "\tradar(Titanium, 0, 360, 0, 1000);\n" @@ -3765,7 +3747,7 @@ msgstr "" "\tradar(Titanium); // gleichwertig" #. type: Source code -#: ../E/radar.txt:52 +#: ../E/radar.txt:60 #, no-wrap msgid "" "\tradar(Titanium, 0, 90, 0, 1000);\n" @@ -3775,7 +3757,7 @@ msgstr "" "\tradar(Titanium, 0, 90); // gleichwertig" #. type: Plain text -#: ../E/radar.txt:55 +#: ../E/radar.txt:63 #, no-wrap msgid "" "When one or more parameters are not specified, the default values indicated above are used instead; only the first parameter is compulsory.\n" @@ -6060,7 +6042,7 @@ msgstr "" "\tAnweisung 3;" #. type: \t; header -#: ../E/cond.txt:21 ../E/radar.txt:46 +#: ../E/cond.txt:21 ../E/radar.txt:54 #, no-wrap msgid "Remark" msgstr "Bemerkung" @@ -6094,7 +6076,7 @@ msgid "Tells the robot to build a building using a titanium cube placed on a fla msgstr "" #. type: \t; header -#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 +#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 ../E/radar.txt:22 #, no-wrap msgid "cat: int" msgstr "" @@ -7562,6 +7544,74 @@ msgstr "" msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." msgstr "" +#. type: Source code +#: ../E/radar.txt:15 +#, no-wrap +msgid "radar ( cat, angle, focus, min, max, sens );" +msgstr "" + +#. type: \t; header +#: ../E/radar.txt:48 +#, no-wrap +msgid "sens: float (default value1)" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:24 +#, no-wrap +msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:23 +#, no-wrap +msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar(AlienAnt). " +msgstr "" + +#. type: Plain text +#: ../E/radar.txt:25 +#, no-wrap +msgid "int bots[4];" +msgstr "" + +#. type: Source code +#: ../E/radar.txt:26 +#, no-wrap +msgid "" +"bots[0] = WheeledGrabber;\n" +"bots[1] = TrackedGrabber;\n" +"bots[2] = WingedGrabber;\n" +"bots[3] = LeggedGrabber;\n" +"object nearestGrabber = radar(bots);" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:31 +#, no-wrap +msgid "Keyword Any if you are looking for any object." +msgstr "" + +#~ msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " +#~ msgstr "Karegorie des gesuchten Objekts. Wenn Sie z.B. nach einer Ameise suchen, schreiben Sie radar(AlienAnt). Wenn Sie radar(0) schreiben, sucht das Radar nach irgendeinem Objekt, ob Feind, Batterie, Kristall, Baum oder Ruine usw. Dies ist vor allem nützlich, um nach einem Hindernis auf dem Weg eines Roboters zu suchen. Testen Sie dann (Name der Variable).category um zu erfahren, was das Radar gefunden hat." + +#~ msgid "object item; // variable declaration" +#~ msgstr "" + +#~ msgid "" +#~ "\n" +#~ "// Look for the closest ant\n" +#~ "item = radar(AlienAnt);" +#~ msgstr "" + +#~ msgid "Array of categories of the objects that should be detected. For example, when you are looking only for tracked bots:" +#~ msgstr "" + +#~ msgid "radar ( category, angle, focus, min, max, way );" +#~ msgstr "radar ( kategorie, winkel, öffnung, min, max, richtung );" + +#~ msgid "way: float (default value1)" +#~ msgstr "richtung: float (Standardwert 1)" + #~ msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." #~ msgstr "" diff --git a/help/cbot/po/fr.po b/help/cbot/po/fr.po index 66af828a..1f5221f0 100644 --- a/help/cbot/po/fr.po +++ b/help/cbot/po/fr.po @@ -53,13 +53,13 @@ msgid "Time in seconds." msgstr "Temps en secondes." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:58 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:66 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Voir aussi" #. type: Plain text -#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:59 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 +#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:67 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 #, no-wrap msgid "Programming, types and categories." msgstr "Programmation, types et catégories." @@ -3638,12 +3638,6 @@ msgstr "" "// Cherche la fourmi la plus proche\n" "chose = radar(AlienAnt);" -#. type: Source code -#: ../E/radar.txt:15 -#, no-wrap -msgid "radar ( category, angle, focus, min, max, way );" -msgstr "radar ( catégorie, angle, focus, min, max, sens );" - #. type: Plain text #: ../E/radar.txt:17 #, no-wrap @@ -3663,25 +3657,19 @@ msgid "Seen from above, the purple zone corresponds to the zone where objects wi msgstr "La zone arrondie violette correspond, vue d'en haut, à la zone dans laquelle les objets sont détectés." #. type: \t; header -#: ../E/radar.txt:22 ../E/search.txt:7 +#: ../E/search.txt:7 #, no-wrap msgid "category: int" msgstr "catégorie: int" -#. type: Plain text -#: ../E/radar.txt:23 -#, no-wrap -msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " -msgstr "Catégorie des objets cherchés. Par exemple, WayPoint." - #. type: \t; header -#: ../E/radar.txt:25 +#: ../E/radar.txt:33 #, no-wrap msgid "angle: float (default value0)" msgstr "angle: float (0 par défaut)" #. type: Plain text -#: ../E/radar.txt:26 +#: ../E/radar.txt:34 #, no-wrap msgid "" "Direction that the radar is facing, in degrees. \n" @@ -3695,79 +3683,73 @@ msgstr "" " 90 -> radar dirigé à droite" #. type: \t; header -#: ../E/radar.txt:31 +#: ../E/radar.txt:39 #, no-wrap msgid "focus: float (default value360)" msgstr "focus: float (360 par défaut)" #. type: Plain text -#: ../E/radar.txt:32 +#: ../E/radar.txt:40 #, no-wrap msgid "Opening angle of the radar, in degrees. " msgstr "Angle d'ouverture du radar, en degrés." #. type: \t; header -#: ../E/radar.txt:34 +#: ../E/radar.txt:42 #, no-wrap msgid "min: float (default value 0)" msgstr "min: float (0 par défaut)" #. type: Plain text -#: ../E/radar.txt:35 +#: ../E/radar.txt:43 #, no-wrap msgid "Minimum detection distance, in meters. Objects that are closer than the minimum distance will not be detected. " msgstr "Distance minimale de détection, en mètres. Avant cette distance, les objets sont ignorés." #. type: \t; header -#: ../E/radar.txt:37 +#: ../E/radar.txt:45 #, no-wrap msgid "max: float (Default value1000)" msgstr "max: float (1000 par défaut)" #. type: Plain text -#: ../E/radar.txt:38 +#: ../E/radar.txt:46 #, no-wrap msgid "Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. " msgstr "Distance maximale de détection, en mètres. Au delà de cette distance, les objets sont ignorés." -#. type: \t; header -#: ../E/radar.txt:40 -#, no-wrap -msgid "way: float (default value1)" -msgstr "sens: float (1 par défaut)" - #. type: Plain text -#: ../E/radar.txt:41 +#: ../E/radar.txt:49 #, no-wrap msgid "Determines which way the objects are detected. With value 1, returns the closest object found in the specified zone. With value -1, the farthest object in the zone will be returned. " msgstr "Sens dans lequel s'effectue la recherche. Avec la valeur 1, on cherche de l'intérieur vers l'extérieur. Autrement dit, c'est l'objet le plus proche qui est trouvé. Avec -1, on cherche de l'extérieur vers l'intérieur. On trouvera donc l'objet le plus éloigné." #. type: \t; header -#: ../E/radar.txt:43 ../E/retobj.txt:10 ../E/search.txt:13 +#: ../E/radar.txt:51 ../E/retobj.txt:10 ../E/search.txt:13 #, no-wrap msgid "Return value: object" msgstr "Valeur retournée: object" #. type: Plain text -#: ../E/radar.txt:44 +#: ../E/radar.txt:52 #, no-wrap msgid "Returns the first object found that corresponds to the specified category in the specified zone. If no object was found, returns the value null." msgstr "Objet trouvé le plus proche. La valeur null indique que rien n'a été trouvé." #. type: \t; header -#: ../E/cond.txt:21 ../E/radar.txt:46 +#: ../E/cond.txt:21 ../E/radar.txt:54 #, no-wrap msgid "Remark" msgstr "Remarque" #. type: Plain text -#: ../E/radar.txt:47 +#: ../E/radar.txt:55 #, no-wrap msgid "You do not have to give all the parameters. Here are two examples of instructions that are equivalent: " msgstr "Il n'est pas nécessaire de donner tous les paramètres. Voici deux exemples identiques:" #. type: Source code -#: ../E/radar.txt:49 +#: ../E/radar.txt:57 #, no-wrap msgid "" "\tradar(Titanium, 0, 360, 0, 1000);\n" @@ -3777,7 +3759,7 @@ msgstr "" "\tradar(Titanium); // identique" #. type: Source code -#: ../E/radar.txt:52 +#: ../E/radar.txt:60 #, no-wrap msgid "" "\tradar(Titanium, 0, 90, 0, 1000);\n" @@ -3787,7 +3769,7 @@ msgstr "" "\tradar(Titanium, 0, 90); // identique" #. type: Plain text -#: ../E/radar.txt:55 +#: ../E/radar.txt:63 #, no-wrap msgid "" "When one or more parameters are not specified, the default values indicated above are used instead; only the first parameter is compulsory.\n" @@ -6050,7 +6032,7 @@ msgid "Tells the robot to build a building using a titanium cube placed on a fla msgstr "" #. type: \t; header -#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 +#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 ../E/radar.txt:22 #, no-wrap msgid "cat: int" msgstr "" @@ -7518,6 +7500,74 @@ msgstr "" msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." msgstr "" +#. type: Source code +#: ../E/radar.txt:15 +#, no-wrap +msgid "radar ( cat, angle, focus, min, max, sens );" +msgstr "" + +#. type: \t; header +#: ../E/radar.txt:48 +#, no-wrap +msgid "sens: float (default value1)" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:24 +#, no-wrap +msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:23 +#, no-wrap +msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar(AlienAnt). " +msgstr "" + +#. type: Plain text +#: ../E/radar.txt:25 +#, no-wrap +msgid "int bots[4];" +msgstr "" + +#. type: Source code +#: ../E/radar.txt:26 +#, no-wrap +msgid "" +"bots[0] = WheeledGrabber;\n" +"bots[1] = TrackedGrabber;\n" +"bots[2] = WingedGrabber;\n" +"bots[3] = LeggedGrabber;\n" +"object nearestGrabber = radar(bots);" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:31 +#, no-wrap +msgid "Keyword Any if you are looking for any object." +msgstr "" + +#~ msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " +#~ msgstr "Catégorie des objets cherchés. Par exemple, WayPoint." + +#~ msgid "object item; // variable declaration" +#~ msgstr "" + +#~ msgid "" +#~ "\n" +#~ "// Look for the closest ant\n" +#~ "item = radar(AlienAnt);" +#~ msgstr "" + +#~ msgid "Array of categories of the objects that should be detected. For example, when you are looking only for tracked bots:" +#~ msgstr "" + +#~ msgid "radar ( category, angle, focus, min, max, way );" +#~ msgstr "radar ( catégorie, angle, focus, min, max, sens );" + +#~ msgid "way: float (default value1)" +#~ msgstr "sens: float (1 par défaut)" + #~ msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." #~ msgstr "" diff --git a/help/cbot/po/pl.po b/help/cbot/po/pl.po index 745ceb6c..e46124f7 100644 --- a/help/cbot/po/pl.po +++ b/help/cbot/po/pl.po @@ -53,13 +53,13 @@ msgid "Time in seconds." msgstr "Czas w sekundach." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:58 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:66 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Zobacz również" #. type: Plain text -#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:59 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 +#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:67 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 #, no-wrap msgid "Programming, types and categories." msgstr "Programowanie, typy i kategorie." @@ -3684,12 +3684,6 @@ msgstr "" "// Znajdź najbliższą mrówkę\n" "item = radar(AlienAnt);" -#. type: Source code -#: ../E/radar.txt:15 -#, no-wrap -msgid "radar ( category, angle, focus, min, max, way );" -msgstr "radar ( category, angle, focus, min, max, way );" - #. type: Plain text #: ../E/radar.txt:17 #, no-wrap @@ -3709,25 +3703,19 @@ msgid "Seen from above, the purple zone corresponds to the zone where objects wi msgstr "Patrząc z góry, czerwona strefa odpowiada strefie, w której będą wykrywane obiekty. " #. type: \t; header -#: ../E/radar.txt:22 ../E/search.txt:7 +#: ../E/search.txt:7 #, no-wrap msgid "category: int" msgstr "kategoria: int" -#. type: Plain text -#: ../E/radar.txt:23 -#, no-wrap -msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " -msgstr "Kategoria poszukiwanego obiektu. Na przykład szukając mrówki, należy napisać radar (AlienAnt). " - #. type: \t; header -#: ../E/radar.txt:25 +#: ../E/radar.txt:33 #, no-wrap msgid "angle: float (default value0)" msgstr "angle: float (domyślna wartość: 0)" #. type: Plain text -#: ../E/radar.txt:26 +#: ../E/radar.txt:34 #, no-wrap msgid "" "Direction that the radar is facing, in degrees. \n" @@ -3741,79 +3729,73 @@ msgstr "" " 90 -> ćwierć obrotu w lewo" #. type: \t; header -#: ../E/radar.txt:31 +#: ../E/radar.txt:39 #, no-wrap msgid "focus: float (default value360)" msgstr "focus: float (domyślna wartość: 360)" #. type: Plain text -#: ../E/radar.txt:32 +#: ../E/radar.txt:40 #, no-wrap msgid "Opening angle of the radar, in degrees. " msgstr "Kąt widzenia radaru, w stopniach. " #. type: \t; header -#: ../E/radar.txt:34 +#: ../E/radar.txt:42 #, no-wrap msgid "min: float (default value 0)" msgstr "min: float (domyślna wartość: 0)" #. type: Plain text -#: ../E/radar.txt:35 +#: ../E/radar.txt:43 #, no-wrap msgid "Minimum detection distance, in meters. Objects that are closer than the minimum distance will not be detected. " msgstr "Minimalna odległość wykrywania, w metrach. Obiekty znajdujące się bliżej nie będą wykryte. " #. type: \t; header -#: ../E/radar.txt:37 +#: ../E/radar.txt:45 #, no-wrap msgid "max: float (Default value1000)" msgstr "max: float (domyślna wartość: 1000)" #. type: Plain text -#: ../E/radar.txt:38 +#: ../E/radar.txt:46 #, no-wrap msgid "Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. " msgstr "Maksymalna odległość wykrywania, w metrach. Obiekty znajdujące się dalej nie będą wykryte. " -#. type: \t; header -#: ../E/radar.txt:40 -#, no-wrap -msgid "way: float (default value1)" -msgstr "way: float (domyślna wartość: 1)" - #. type: Plain text -#: ../E/radar.txt:41 +#: ../E/radar.txt:49 #, no-wrap msgid "Determines which way the objects are detected. With value 1, returns the closest object found in the specified zone. With value -1, the farthest object in the zone will be returned. " msgstr "Określa sposób wykrywania obiektu. Przy wartości 1, znajduje najbliższy obiekt w podanej strefie. Przy wartości-1, znajduje najdalszy obiekt w strefie. " #. type: \t; header -#: ../E/radar.txt:43 ../E/retobj.txt:10 ../E/search.txt:13 +#: ../E/radar.txt:51 ../E/retobj.txt:10 ../E/search.txt:13 #, no-wrap msgid "Return value: object" msgstr "Typ wyniku: object" #. type: Plain text -#: ../E/radar.txt:44 +#: ../E/radar.txt:52 #, no-wrap msgid "Returns the first object found that corresponds to the specified category in the specified zone. If no object was found, returns the value null." msgstr "Zwraca pierwszy znaleziony obiekt odpowiadający podanej kategorii w podanej strefie. Jeśli nie znaleziono obiektu, zwracana jest wartość null." #. type: \t; header -#: ../E/cond.txt:21 ../E/radar.txt:46 +#: ../E/cond.txt:21 ../E/radar.txt:54 #, no-wrap msgid "Remark" msgstr "Uwaga" #. type: Plain text -#: ../E/radar.txt:47 +#: ../E/radar.txt:55 #, no-wrap msgid "You do not have to give all the parameters. Here are two examples of instructions that are equivalent: " msgstr "Nie jest konieczne podawanie wszystkich parametrów. Oto dwa przykłady równoważnych instrukcji: " #. type: Source code -#: ../E/radar.txt:49 +#: ../E/radar.txt:57 #, no-wrap msgid "" "\tradar(Titanium, 0, 360, 0, 1000);\n" @@ -3823,7 +3805,7 @@ msgstr "" "\tradar(Titanium); // równoważne" #. type: Source code -#: ../E/radar.txt:52 +#: ../E/radar.txt:60 #, no-wrap msgid "" "\tradar(Titanium, 0, 90, 0, 1000);\n" @@ -3833,7 +3815,7 @@ msgstr "" "\tradar(Titanium, 0, 90); // równoważne" #. type: Plain text -#: ../E/radar.txt:55 +#: ../E/radar.txt:63 #, no-wrap msgid "" "When one or more parameters are not specified, the default values indicated above are used instead; only the first parameter is compulsory.\n" @@ -6099,7 +6081,7 @@ msgid "Tells the robot to build a building using a titanium cube placed on a fla msgstr "" #. type: \t; header -#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 +#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 ../E/radar.txt:22 #, no-wrap msgid "cat: int" msgstr "" @@ -7567,6 +7549,74 @@ msgstr "" msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." msgstr "" +#. type: Source code +#: ../E/radar.txt:15 +#, no-wrap +msgid "radar ( cat, angle, focus, min, max, sens );" +msgstr "" + +#. type: \t; header +#: ../E/radar.txt:48 +#, no-wrap +msgid "sens: float (default value1)" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:24 +#, no-wrap +msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:23 +#, no-wrap +msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar(AlienAnt). " +msgstr "" + +#. type: Plain text +#: ../E/radar.txt:25 +#, no-wrap +msgid "int bots[4];" +msgstr "" + +#. type: Source code +#: ../E/radar.txt:26 +#, no-wrap +msgid "" +"bots[0] = WheeledGrabber;\n" +"bots[1] = TrackedGrabber;\n" +"bots[2] = WingedGrabber;\n" +"bots[3] = LeggedGrabber;\n" +"object nearestGrabber = radar(bots);" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:31 +#, no-wrap +msgid "Keyword Any if you are looking for any object." +msgstr "" + +#~ msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " +#~ msgstr "Kategoria poszukiwanego obiektu. Na przykład szukając mrówki, należy napisać radar (AlienAnt). " + +#~ msgid "object item; // variable declaration" +#~ msgstr "" + +#~ msgid "" +#~ "\n" +#~ "// Look for the closest ant\n" +#~ "item = radar(AlienAnt);" +#~ msgstr "" + +#~ msgid "Array of categories of the objects that should be detected. For example, when you are looking only for tracked bots:" +#~ msgstr "" + +#~ msgid "radar ( category, angle, focus, min, max, way );" +#~ msgstr "radar ( category, angle, focus, min, max, way );" + +#~ msgid "way: float (default value1)" +#~ msgstr "way: float (domyślna wartość: 1)" + #~ msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." #~ msgstr "" diff --git a/help/cbot/po/ru.po b/help/cbot/po/ru.po index 6f361989..9020c73a 100644 --- a/help/cbot/po/ru.po +++ b/help/cbot/po/ru.po @@ -53,13 +53,13 @@ msgid "Time in seconds." msgstr "" #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:58 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:30 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:107 ../E/ceil.txt:12 ../E/class.txt:70 ../E/close.txt:6 ../E/cond.txt:27 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:74 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:38 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:17 ../E/public.txt:49 ../E/radar.txt:66 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:16 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "См. также" #. type: Plain text -#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:59 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 +#: ../E/abstime.txt:11 ../E/aim.txt:24 ../E/array.txt:31 ../E/bool.txt:5 ../E/break.txt:25 ../E/busy.txt:15 ../E/cond.txt:28 ../E/continue.txt:25 ../E/deletef.txt:10 ../E/direct.txt:14 ../E/dist.txt:30 ../E/dist2d.txt:14 ../E/drop.txt:29 ../E/errmode.txt:33 ../E/expr.txt:75 ../E/extern.txt:30 ../E/false.txt:5 ../E/fire.txt:31 ../E/flatgrnd.txt:17 ../E/flatspace.txt:26 ../E/float.txt:25 ../E/for.txt:39 ../E/function.txt:130 ../E/goto.txt:35 ../E/grab.txt:29 ../E/if.txt:40 ../E/int.txt:19 ../E/jet.txt:15 ../E/message.txt:25 ../E/move.txt:22 ../E/nan.txt:15 ../E/object.txt:80 ../E/openfile.txt:11 ../E/pencolor.txt:15 ../E/pendown.txt:18 ../E/penup.txt:12 ../E/penwidth.txt:15 ../E/point.txt:36 ../E/radar.txt:67 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:17 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/takeoff.txt:16 ../E/term.txt:31 ../E/thump.txt:13 ../E/topo.txt:14 ../E/true.txt:5 ../E/turn.txt:33 ../E/type.txt:33 ../E/var.txt:67 ../E/void.txt:11 ../E/wait.txt:22 #, no-wrap msgid "Programming, types and categories." msgstr "Программирование, типы и категории." @@ -3653,12 +3653,6 @@ msgstr "" "// Поиск ближайшего муравья\n" "item = radar(AlienAnt);" -#. type: Source code -#: ../E/radar.txt:15 -#, no-wrap -msgid "radar ( category, angle, focus, min, max, way );" -msgstr "radar ( категория, угол, фокус, мин, макс, путь );" - #. type: Plain text #: ../E/radar.txt:17 #, no-wrap @@ -3678,25 +3672,19 @@ msgid "Seen from above, the purple zone corresponds to the zone where objects wi msgstr "Как видно выше, пурпурная зона соответствует зоне, где будут обнаружены объекты." #. type: \t; header -#: ../E/radar.txt:22 ../E/search.txt:7 +#: ../E/search.txt:7 #, no-wrap msgid "category: int" msgstr "категория: int" -#. type: Plain text -#: ../E/radar.txt:23 -#, no-wrap -msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " -msgstr "Категория объекта, который нужно обнаружить. Например когда вы ищете муравья, напишите radar (AlienAnt)." - #. type: \t; header -#: ../E/radar.txt:25 +#: ../E/radar.txt:33 #, no-wrap msgid "angle: float (default value0)" msgstr "угол: float (значение по умолчанию0)" #. type: Plain text -#: ../E/radar.txt:26 +#: ../E/radar.txt:34 #, no-wrap msgid "" "Direction that the radar is facing, in degrees. \n" @@ -3710,79 +3698,73 @@ msgstr "" " 90 -> радар смотрит на четверть круга влево" #. type: \t; header -#: ../E/radar.txt:31 +#: ../E/radar.txt:39 #, no-wrap msgid "focus: float (default value360)" msgstr "фокус: float (значение по умолчанию360)" #. type: Plain text -#: ../E/radar.txt:32 +#: ../E/radar.txt:40 #, no-wrap msgid "Opening angle of the radar, in degrees. " msgstr "Угол раскрытия радара в градусах." #. type: \t; header -#: ../E/radar.txt:34 +#: ../E/radar.txt:42 #, no-wrap msgid "min: float (default value 0)" msgstr "мин: float (значение по умолчанию 0)" #. type: Plain text -#: ../E/radar.txt:35 +#: ../E/radar.txt:43 #, no-wrap msgid "Minimum detection distance, in meters. Objects that are closer than the minimum distance will not be detected. " msgstr "Минимальное расстояние обнаружения в метрах. Объекты, которые находятся на расстояниях меньших, чем минимальное расстояние, обнаружены не будут." #. type: \t; header -#: ../E/radar.txt:37 +#: ../E/radar.txt:45 #, no-wrap msgid "max: float (Default value1000)" msgstr "макс: float (Значение по умолчанию1000)" #. type: Plain text -#: ../E/radar.txt:38 +#: ../E/radar.txt:46 #, no-wrap msgid "Maximum detection distance, in meters. Objects that are farther away than the maximum distance will not be detected. " msgstr "Максимальное расстояние обнаружения в метрах. Объекты, которые находятся на расстояниях, больше максимального расстояния, обнаружены не будут." -#. type: \t; header -#: ../E/radar.txt:40 -#, no-wrap -msgid "way: float (default value1)" -msgstr "путь: float (значение по умолчанию1)" - #. type: Plain text -#: ../E/radar.txt:41 +#: ../E/radar.txt:49 #, no-wrap msgid "Determines which way the objects are detected. With value 1, returns the closest object found in the specified zone. With value -1, the farthest object in the zone will be returned. " msgstr "Определяет каким образом будут обнаруживаться объекты. Если его значение 1, то будет возвращен ближайший объект в указанной зоне. Если значение -1, то будет возвращен самый дальний объект в зоне обнаружения." #. type: \t; header -#: ../E/radar.txt:43 ../E/retobj.txt:10 ../E/search.txt:13 +#: ../E/radar.txt:51 ../E/retobj.txt:10 ../E/search.txt:13 #, no-wrap msgid "Return value: object" msgstr "Возвращаемое значение: object" #. type: Plain text -#: ../E/radar.txt:44 +#: ../E/radar.txt:52 #, no-wrap msgid "Returns the first object found that corresponds to the specified category in the specified zone. If no object was found, returns the value null." msgstr "Возвращает первый найденный объект, который соответствует указанной категории в указанной зоне. Если объект найден не был, то возвращается значение null." #. type: \t; header -#: ../E/cond.txt:21 ../E/radar.txt:46 +#: ../E/cond.txt:21 ../E/radar.txt:54 #, no-wrap msgid "Remark" msgstr "Замечание" #. type: Plain text -#: ../E/radar.txt:47 +#: ../E/radar.txt:55 #, no-wrap msgid "You do not have to give all the parameters. Here are two examples of instructions that are equivalent: " msgstr "Вы не должны указывать все параметры. Вот два примера эквивалентных инструкций:" #. type: Source code -#: ../E/radar.txt:49 +#: ../E/radar.txt:57 #, no-wrap msgid "" "\tradar(Titanium, 0, 360, 0, 1000);\n" @@ -3792,7 +3774,7 @@ msgstr "" "\tradar(Titanium); // эквивалентна предыдущей" #. type: Source code -#: ../E/radar.txt:52 +#: ../E/radar.txt:60 #, no-wrap msgid "" "\tradar(Titanium, 0, 90, 0, 1000);\n" @@ -3802,7 +3784,7 @@ msgstr "" "\tradar(Titanium, 0, 90); // эквивалентна предыдущей" #. type: Plain text -#: ../E/radar.txt:55 +#: ../E/radar.txt:63 #, no-wrap msgid "" "When one or more parameters are not specified, the default values indicated above are used instead; only the first parameter is compulsory.\n" @@ -6059,7 +6041,7 @@ msgid "Tells the robot to build a building using a titanium cube placed on a fla msgstr "" #. type: \t; header -#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 +#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/factory.txt:10 ../E/radar.txt:22 #, no-wrap msgid "cat: int" msgstr "" @@ -7527,6 +7509,74 @@ msgstr "" msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." msgstr "" +#. type: Source code +#: ../E/radar.txt:15 +#, no-wrap +msgid "radar ( cat, angle, focus, min, max, sens );" +msgstr "" + +#. type: \t; header +#: ../E/radar.txt:48 +#, no-wrap +msgid "sens: float (default value1)" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:24 +#, no-wrap +msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:23 +#, no-wrap +msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar(AlienAnt). " +msgstr "" + +#. type: Plain text +#: ../E/radar.txt:25 +#, no-wrap +msgid "int bots[4];" +msgstr "" + +#. type: Source code +#: ../E/radar.txt:26 +#, no-wrap +msgid "" +"bots[0] = WheeledGrabber;\n" +"bots[1] = TrackedGrabber;\n" +"bots[2] = WingedGrabber;\n" +"bots[3] = LeggedGrabber;\n" +"object nearestGrabber = radar(bots);" +msgstr "" + +#. type: Bullet: 'o' +#: ../E/radar.txt:31 +#, no-wrap +msgid "Keyword Any if you are looking for any object." +msgstr "" + +#~ msgid "Category of the objects that should be detected. For example, when you are looking for an ant, write radar (AlienAnt). " +#~ msgstr "Категория объекта, который нужно обнаружить. Например когда вы ищете муравья, напишите radar (AlienAnt)." + +#~ msgid "object item; // variable declaration" +#~ msgstr "" + +#~ msgid "" +#~ "\n" +#~ "// Look for the closest ant\n" +#~ "item = radar(AlienAnt);" +#~ msgstr "" + +#~ msgid "Array of categories of the objects that should be detected. For example, when you are looking only for tracked bots:" +#~ msgstr "" + +#~ msgid "radar ( category, angle, focus, min, max, way );" +#~ msgstr "radar ( категория, угол, фокус, мин, макс, путь );" + +#~ msgid "way: float (default value1)" +#~ msgstr "путь: float (значение по умолчанию1)" + #~ msgid "Nothing but a name can be changed in the main function. The keyword extern distinguish the main function from others." #~ msgstr ""