diff --git a/help/cbot/E/detect.txt b/help/cbot/E/detect.txt
new file mode 100644
index 00000000..94d47df8
--- /dev/null
+++ b/help/cbot/E/detect.txt
@@ -0,0 +1,28 @@
+\b;Instruction \c;detect\n;
+With the instruction \c;detect();\n;, you can look for objects like \l;enemies\u object\mother;, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of \c;\l;radar\u cbot\radar;();\n;.
+
+\b;For specialists
+Syntax:
+\s;\c;detect ( cat );\n;
+
+Detects the nearest object of the specified \l;category\u cbot\category; being in front of the bot. It is similar to the following instruction:
+\s;\c;radar(cat, 0, 45, 0, 20);\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 (including even plants and so on).
+
+\t;Return value: \c;\l;bool\u cbot\bool;\n;
+\const;true\norm; if the object was found
+\const;false\norm; if the object was not found
+
+\t;See also
+\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
diff --git a/help/cbot/po/cbot.pot b/help/cbot/po/cbot.pot
index faa9b732..9eae49f9 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/destroy.txt:15 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:15 ../E/detect.txt:27 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:16 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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/destroy.txt:16 ../E/detect.txt:28 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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 ""
@@ -931,13 +931,13 @@ msgid ""
msgstr ""
#. type: \b; header, \t; header
-#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
+#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/detect.txt:4 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#, no-wrap
msgid "For specialists"
msgstr ""
#. type: Plain text
-#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
+#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/detect.txt:5 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
#, no-wrap
msgid "Syntax:"
msgstr ""
@@ -3053,141 +3053,24 @@ msgid ""
"Programming, types and categories."
msgstr ""
-#. type: \b; header
-#: ../E/radar.txt:1
-#, no-wrap
-msgid "Instruction radar
"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:2
-#, no-wrap
-msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:5
-#, no-wrap
-msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
-msgstr ""
-
-#. type: Source code
-#: ../E/radar.txt:7
-#, no-wrap
-msgid ""
-"// At the beginning of the program:\n"
-"object item; // variable declaration\n"
-"\n"
-"// Look for the closest ant\n"
-"item = radar(AlienAnt);"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:17
-#, no-wrap
-msgid "Detects an object according to several parameters. "
-msgstr ""
-
-#. type: Image filename
-#: ../E/radar.txt:19
-#, no-wrap
-msgid "radar1"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:20
-#, no-wrap
-msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
-msgstr ""
-
#. type: \t; header
#: ../E/search.txt:7
#, no-wrap
msgid "category: int
"
msgstr ""
-#. type: Plain text
-#: ../E/radar.txt:34
-#, no-wrap
-msgid ""
-"Direction that the radar is facing, in degrees. \n"
-" 0
-> radar is facing straight ahead\n"
-"-90
-> radar is facing a quarter turn right\n"
-" 90
-> radar is facing a quarter turn left"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:40
-#, no-wrap
-msgid "Opening angle of the radar, in degrees. "
-msgstr ""
-
-#. type: Plain text
-#: ../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: Plain text
-#: ../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: Plain text
-#: ../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:65 ../E/retobj.txt:10 ../E/search.txt:22
#, no-wrap
msgid "Return value: object
"
msgstr ""
-#. type: Plain text
-#: ../E/radar.txt:66
-#, 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:68
#, no-wrap
msgid "Remark"
msgstr ""
-#. type: Plain text
-#: ../E/radar.txt:69
-#, 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:71
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // equivalent"
-msgstr ""
-
-#. type: Source code
-#: ../E/radar.txt:74
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // equivalent"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:77
-#, 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"
-"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
-msgstr ""
-
#. type: \b; header
#: ../E/readln.txt:1
#, no-wrap
@@ -5193,7 +5076,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/radar.txt:22
+#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/detect.txt:11 ../E/factory.txt:10 ../E/radar.txt:22
#, no-wrap
msgid "cat: int
"
msgstr ""
@@ -5499,7 +5382,7 @@ msgid "canbuild ( cat );"
msgstr ""
#. type: \t; header
-#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/researched.txt:10
+#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/detect.txt:23 ../E/researched.txt:10
#, no-wrap
msgid "Return value: bool
"
msgstr ""
@@ -6668,7 +6551,7 @@ msgid "Array of categories of the objects that should be detec
msgstr ""
#. type: Bullet: 'o'
-#: ../E/radar.txt:23
+#: ../E/detect.txt:12 ../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 ""
@@ -6679,41 +6562,6 @@ msgstr ""
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: \t; header
-#: ../E/radar.txt:33
-#, no-wrap
-msgid "angle: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:39
-#, no-wrap
-msgid "focus: float
(default value: 360
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:42
-#, no-wrap
-msgid "min: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:48
-#, no-wrap
-msgid "sens: float
(default value: 1
)"
-msgstr ""
-
#. type: Plain text
#: ../E/search.txt:5
#, no-wrap
@@ -6750,12 +6598,6 @@ msgstr ""
msgid "position: point
(default value: this.position
)"
msgstr ""
-#. type: \t; header
-#: ../E/radar.txt:45
-#, no-wrap
-msgid "max: float
(default value: 1000
)"
-msgstr ""
-
#. type: \b; header
#: ../E/destroy.txt:1
#, no-wrap
@@ -6815,59 +6657,11 @@ msgid ""
msgstr ""
#. type: Bullet: 'o'
-#: ../E/search.txt:17
+#: ../E/detect.txt:21 ../E/search.txt:17
#, no-wrap
msgid "Keyword Any if you are looking for any object (including even plants and so on)."
msgstr ""
-#. type: Source code
-#: ../E/radar.txt:15
-#, no-wrap
-msgid "radar ( cat, angle, focus, min, max, sens, filter );"
-msgstr ""
-
-#. type: Bullet: 'o'
-#: ../E/radar.txt:31
-#, no-wrap
-msgid "Keyword Any if you are looking for any object (including even plants and so on). Filters may be useful to use with this keyword."
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:51
-#, no-wrap
-msgid "filter: int
(default value: FilterNone
)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:52
-#, no-wrap
-msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:54
-#, no-wrap
-msgid ""
-"FilterNone
Detects everything (default)\n"
-"FilterOnlyLanding
Detects only objects being on the ground\n"
-"FilterOnlyFlying
Detects only objects not being on the ground\n"
-"FilterFriendly
Detects only allies (objects in the same team)\n"
-"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
-"FilterNeutral
Detects only neutral objects (e.g. resources)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:61
-#, no-wrap
-msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:63
-#, no-wrap
-msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
-msgstr ""
-
#. type: \b; header
#: ../E/switch.txt:1
#, no-wrap
@@ -7002,3 +6796,265 @@ msgstr ""
#, no-wrap
msgid "You can exit from the the switch() {}
instruction using break
."
msgstr ""
+
+#. type: \b; header
+#: ../E/detect.txt:1
+#, no-wrap
+msgid "Instruction detect
"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:6
+#, no-wrap
+msgid "detect ( cat );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:8
+#, no-wrap
+msgid "Detects the nearest object of the specified category being in front of the bot. It is similar to the following instruction:"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:9
+#, no-wrap
+msgid "radar(cat, 0, 45, 0, 20);"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:14
+#, no-wrap
+msgid ""
+"int bots[4];\n"
+"bots[0] = WheeledGrabber;\n"
+"bots[1] = TrackedGrabber;\n"
+"bots[2] = WingedGrabber;\n"
+"bots[3] = LeggedGrabber;\n"
+"object nearestGrabber = radar(bots);"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:24
+#, no-wrap
+msgid ""
+"true if the object was found\n"
+"false if the object was not found"
+msgstr ""
+
+#. type: \b; header
+#: ../E/radar.txt:1
+#, no-wrap
+msgid "Instruction radar
"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:2
+#, no-wrap
+msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:5
+#, no-wrap
+msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:7
+#, no-wrap
+msgid ""
+"// At the beginning of the program:\n"
+"object item; // variable declaration\n"
+"\n"
+"// Look for the closest ant\n"
+"item = radar(AlienAnt);"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:15
+#, no-wrap
+msgid "radar ( cat, angle, focus, min, max, sens, filter );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:17
+#, no-wrap
+msgid "Detects an object according to several parameters. "
+msgstr ""
+
+#. type: Image filename
+#: ../E/radar.txt:19
+#, no-wrap
+msgid "radar1"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:20
+#, no-wrap
+msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
+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 (including even plants and so on). Filters may be useful to use with this keyword."
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:33
+#, no-wrap
+msgid "angle: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:34
+#, no-wrap
+msgid ""
+"Direction that the radar is facing, in degrees. \n"
+" 0
-> radar is facing straight ahead\n"
+"-90
-> radar is facing a quarter turn right\n"
+" 90
-> radar is facing a quarter turn left"
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:39
+#, no-wrap
+msgid "focus: float
(default value: 360
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:40
+#, no-wrap
+msgid "Opening angle of the radar, in degrees. "
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:42
+#, no-wrap
+msgid "min: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:45
+#, no-wrap
+msgid "max: float
(default value: 1000
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:48
+#, no-wrap
+msgid "sens: float
(default value: 1
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:51
+#, no-wrap
+msgid "filter: int
(default value: FilterNone
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:52
+#, no-wrap
+msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:54
+#, no-wrap
+msgid ""
+"FilterNone
Detects everything (default)\n"
+"FilterOnlyLanding
Detects only objects being on the ground\n"
+"FilterOnlyFlying
Detects only objects not being on the ground\n"
+"FilterFriendly
Detects only allies (objects in the same team)\n"
+"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
+"FilterNeutral
Detects only neutral objects (e.g. resources)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:61
+#, no-wrap
+msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:63
+#, no-wrap
+msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:66
+#, 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: Plain text
+#: ../E/radar.txt:69
+#, 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:71
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 360, 0, 1000);\n"
+"\tradar(Titanium); // equivalent"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:74
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 90, 0, 1000);\n"
+"\tradar(Titanium, 0, 90); // equivalent"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:77
+#, 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"
+"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:2
+#, no-wrap
+msgid "With the instruction detect();, you can look for objects like enemies, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of radar();."
+msgstr ""
+
+#. type: Bullet: 'o'
+#: ../E/detect.txt:13
+#, no-wrap
+msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:"
+msgstr ""
diff --git a/help/cbot/po/de.po b/help/cbot/po/de.po
index ecff592b..50eb6425 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/destroy.txt:15 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:15 ../E/detect.txt:27 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:16 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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/destroy.txt:16 ../E/detect.txt:28 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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."
@@ -1087,13 +1087,13 @@ msgstr ""
"\tmove(distance(position, item.position) - 40);"
#. type: \b; header, \t; header
-#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
+#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/detect.txt:4 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#, no-wrap
msgid "For specialists"
msgstr "Für Spezialisten"
#. type: Plain text
-#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
+#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/detect.txt:5 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
#, no-wrap
msgid "Syntax:"
msgstr "Syntax:"
@@ -3554,148 +3554,18 @@ msgstr ""
"Klassen
, private
, Funktionen
\n"
"Die CBOT-Sprache, Variablentypen und Kategorien."
-#. type: \b; header
-#: ../E/radar.txt:1
-#, no-wrap
-msgid "Instruction radar
"
-msgstr "Anweisung radar
"
-
-#. type: Plain text
-#: ../E/radar.txt:2
-#, no-wrap
-msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
-msgstr "Mit der Anweisung radar()
können Sie mit dem bordeigenen Radar nach bestimmten Objekten wie feindlichen Wesen, Robotern, Gebäuden oder Rohmaterial suchen."
-
-#. type: Plain text
-#: ../E/radar.txt:5
-#, no-wrap
-msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
-msgstr "Schreiben Sie in Klammern den Namen des Objekts, das Sie suchen. Geben Sie das Ergebnis in eine Variable vom Typ object
. Hier ist ein Beispiel, das nach der nächsten Ameise sucht:"
-
-#. type: Source code
-#: ../E/radar.txt:7
-#, no-wrap
-msgid ""
-"// At the beginning of the program:\n"
-"object item; // variable declaration\n"
-"\n"
-"// Look for the closest ant\n"
-"item = radar(AlienAnt);"
-msgstr ""
-"// Am Anfang des Programms:\n"
-"object item; // Deklaration der Variable\n"
-"\n"
-"// sucht die nächste Ameise\n"
-"item = radar(AlienAnt);"
-
-#. type: Plain text
-#: ../E/radar.txt:17
-#, no-wrap
-msgid "Detects an object according to several parameters. "
-msgstr "Sucht nach einem Objekt gemäss verschiedenen Parametern."
-
-#. type: Image filename
-#: ../E/radar.txt:19
-#, no-wrap
-msgid "radar1"
-msgstr "radar1"
-
-#. type: Plain text
-#: ../E/radar.txt:20
-#, no-wrap
-msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
-msgstr "Von oben gesehen, entspricht die lila Zone der Zone, wo nach dem Objekt gesucht wird. "
-
#. type: \t; header
#: ../E/search.txt:7
#, no-wrap
msgid "category: int
"
msgstr "kategorie: int
"
-#. type: Plain text
-#: ../E/radar.txt:34
-#, no-wrap
-msgid ""
-"Direction that the radar is facing, in degrees. \n"
-" 0
-> radar is facing straight ahead\n"
-"-90
-> radar is facing a quarter turn right\n"
-" 90
-> radar is facing a quarter turn left"
-msgstr ""
-"Richtung, in die das Radar gedreht werden soll, in Grad.\n"
-" 0
-> das Radar schaut geradeaus\n"
-"-90
-> das Radar schaut im rechten Winkel nach rechts\n"
-" 90
-> das Radar schaut im rechten Winkel nach links"
-
-#. type: Plain text
-#: ../E/radar.txt:40
-#, no-wrap
-msgid "Opening angle of the radar, in degrees. "
-msgstr "Öffnungswinkel des Radars, in Grad."
-
-#. type: Plain text
-#: ../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: Plain text
-#: ../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: Plain text
-#: ../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:65 ../E/retobj.txt:10 ../E/search.txt:22
#, no-wrap
msgid "Return value: object
"
msgstr "Rückgabe: object
"
-#. type: Plain text
-#: ../E/radar.txt:66
-#, 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:69
-#, 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:71
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // gleichwertig"
-
-#. type: Source code
-#: ../E/radar.txt:74
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // gleichwertig"
-
-#. type: Plain text
-#: ../E/radar.txt:77
-#, 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"
-"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
-msgstr "Wenn ein oder mehrere Parameter nicht angegeben werden, wird der oben angegebene Standardwert stattdessen eingesetzt. Nur der erste Parameter ist obligatorisch, z.B. radar(AlienAnt)
sucht nach der nächsten Ameise, wo immer sie sein mag."
-
#. type: \b; header
#: ../E/readln.txt:1
#, no-wrap
@@ -5996,7 +5866,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/radar.txt:22
+#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/detect.txt:11 ../E/factory.txt:10 ../E/radar.txt:22
#, no-wrap
msgid "cat: int
"
msgstr ""
@@ -6302,7 +6172,7 @@ msgid "canbuild ( cat );"
msgstr ""
#. type: \t; header
-#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/researched.txt:10
+#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/detect.txt:23 ../E/researched.txt:10
#, no-wrap
msgid "Return value: bool
"
msgstr ""
@@ -7471,7 +7341,7 @@ msgid "Array of categories of the objects that should be detec
msgstr ""
#. type: Bullet: 'o'
-#: ../E/radar.txt:23
+#: ../E/detect.txt:12 ../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 ""
@@ -7482,41 +7352,6 @@ msgstr ""
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: \t; header
-#: ../E/radar.txt:33
-#, no-wrap
-msgid "angle: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:39
-#, no-wrap
-msgid "focus: float
(default value: 360
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:42
-#, no-wrap
-msgid "min: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:48
-#, no-wrap
-msgid "sens: float
(default value: 1
)"
-msgstr ""
-
#. type: Plain text
#: ../E/search.txt:5
#, no-wrap
@@ -7553,12 +7388,6 @@ msgstr ""
msgid "position: point
(default value: this.position
)"
msgstr ""
-#. type: \t; header
-#: ../E/radar.txt:45
-#, no-wrap
-msgid "max: float
(default value: 1000
)"
-msgstr ""
-
#. type: \b; header
#: ../E/destroy.txt:1
#, no-wrap
@@ -7618,59 +7447,11 @@ msgid ""
msgstr ""
#. type: Bullet: 'o'
-#: ../E/search.txt:17
+#: ../E/detect.txt:21 ../E/search.txt:17
#, no-wrap
msgid "Keyword Any if you are looking for any object (including even plants and so on)."
msgstr ""
-#. type: Source code
-#: ../E/radar.txt:15
-#, no-wrap
-msgid "radar ( cat, angle, focus, min, max, sens, filter );"
-msgstr ""
-
-#. type: Bullet: 'o'
-#: ../E/radar.txt:31
-#, no-wrap
-msgid "Keyword Any if you are looking for any object (including even plants and so on). Filters may be useful to use with this keyword."
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:51
-#, no-wrap
-msgid "filter: int
(default value: FilterNone
)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:52
-#, no-wrap
-msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:54
-#, no-wrap
-msgid ""
-"FilterNone
Detects everything (default)\n"
-"FilterOnlyLanding
Detects only objects being on the ground\n"
-"FilterOnlyFlying
Detects only objects not being on the ground\n"
-"FilterFriendly
Detects only allies (objects in the same team)\n"
-"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
-"FilterNeutral
Detects only neutral objects (e.g. resources)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:61
-#, no-wrap
-msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:63
-#, no-wrap
-msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
-msgstr ""
-
#. type: \b; header
#: ../E/switch.txt:1
#, no-wrap
@@ -7805,3 +7586,265 @@ msgstr ""
#, no-wrap
msgid "You can exit from the the switch() {}
instruction using break
."
msgstr ""
+
+#. type: \b; header
+#: ../E/detect.txt:1
+#, no-wrap
+msgid "Instruction detect
"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:6
+#, no-wrap
+msgid "detect ( cat );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:8
+#, no-wrap
+msgid "Detects the nearest object of the specified category being in front of the bot. It is similar to the following instruction:"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:9
+#, no-wrap
+msgid "radar(cat, 0, 45, 0, 20);"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:14
+#, no-wrap
+msgid ""
+"int bots[4];\n"
+"bots[0] = WheeledGrabber;\n"
+"bots[1] = TrackedGrabber;\n"
+"bots[2] = WingedGrabber;\n"
+"bots[3] = LeggedGrabber;\n"
+"object nearestGrabber = radar(bots);"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:24
+#, no-wrap
+msgid ""
+"true if the object was found\n"
+"false if the object was not found"
+msgstr ""
+
+#. type: \b; header
+#: ../E/radar.txt:1
+#, no-wrap
+msgid "Instruction radar
"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:2
+#, no-wrap
+msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:5
+#, no-wrap
+msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:7
+#, no-wrap
+msgid ""
+"// At the beginning of the program:\n"
+"object item; // variable declaration\n"
+"\n"
+"// Look for the closest ant\n"
+"item = radar(AlienAnt);"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:15
+#, no-wrap
+msgid "radar ( cat, angle, focus, min, max, sens, filter );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:17
+#, no-wrap
+msgid "Detects an object according to several parameters. "
+msgstr ""
+
+#. type: Image filename
+#: ../E/radar.txt:19
+#, no-wrap
+msgid "radar1"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:20
+#, no-wrap
+msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
+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 (including even plants and so on). Filters may be useful to use with this keyword."
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:33
+#, no-wrap
+msgid "angle: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:34
+#, no-wrap
+msgid ""
+"Direction that the radar is facing, in degrees. \n"
+" 0
-> radar is facing straight ahead\n"
+"-90
-> radar is facing a quarter turn right\n"
+" 90
-> radar is facing a quarter turn left"
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:39
+#, no-wrap
+msgid "focus: float
(default value: 360
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:40
+#, no-wrap
+msgid "Opening angle of the radar, in degrees. "
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:42
+#, no-wrap
+msgid "min: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:45
+#, no-wrap
+msgid "max: float
(default value: 1000
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:48
+#, no-wrap
+msgid "sens: float
(default value: 1
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:51
+#, no-wrap
+msgid "filter: int
(default value: FilterNone
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:52
+#, no-wrap
+msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:54
+#, no-wrap
+msgid ""
+"FilterNone
Detects everything (default)\n"
+"FilterOnlyLanding
Detects only objects being on the ground\n"
+"FilterOnlyFlying
Detects only objects not being on the ground\n"
+"FilterFriendly
Detects only allies (objects in the same team)\n"
+"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
+"FilterNeutral
Detects only neutral objects (e.g. resources)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:61
+#, no-wrap
+msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:63
+#, no-wrap
+msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:66
+#, 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: Plain text
+#: ../E/radar.txt:69
+#, 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:71
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 360, 0, 1000);\n"
+"\tradar(Titanium); // equivalent"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:74
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 90, 0, 1000);\n"
+"\tradar(Titanium, 0, 90); // equivalent"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:77
+#, 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"
+"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:2
+#, no-wrap
+msgid "With the instruction detect();, you can look for objects like enemies, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of radar();."
+msgstr ""
+
+#. type: Bullet: 'o'
+#: ../E/detect.txt:13
+#, no-wrap
+msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:"
+msgstr ""
diff --git a/help/cbot/po/fr.po b/help/cbot/po/fr.po
index e70bbc8b..6dbb1ea8 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/destroy.txt:15 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:15 ../E/detect.txt:27 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:16 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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/destroy.txt:16 ../E/detect.txt:28 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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."
@@ -1126,13 +1126,13 @@ msgstr ""
"\tmove(distance(position, chose.position) - 40);"
#. type: \b; header, \t; header
-#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
+#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/detect.txt:4 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#, no-wrap
msgid "For specialists"
msgstr "Pour spécialistes"
#. type: Plain text
-#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
+#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/detect.txt:5 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
#, no-wrap
msgid "Syntax:"
msgstr "Syntaxe:"
@@ -3560,156 +3560,24 @@ msgstr ""
"class
, private
\n"
"Programmation, types et catégories."
-#. type: \b; header
-#: ../E/radar.txt:1
-#, no-wrap
-msgid "Instruction radar
"
-msgstr "Instruction radar
"
-
-#. type: Plain text
-#: ../E/radar.txt:2
-#, no-wrap
-msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
-msgstr "Avec l'instruction radar()
, le robot peut chercher des objets comme des ennemis, des robots ou des bâtiments."
-
-#. type: Plain text
-#: ../E/radar.txt:5
-#, no-wrap
-msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
-msgstr "Donnez entre parenthèses le nom de l'objet que vous cherchez. Mettez le résultat dans une variable de type object
. Voici par exemple comment chercher la fourmi la plus proche:"
-
-#. type: Source code
-#: ../E/radar.txt:7
-#, no-wrap
-msgid ""
-"// At the beginning of the program:\n"
-"object item; // variable declaration\n"
-"\n"
-"// Look for the closest ant\n"
-"item = radar(AlienAnt);"
-msgstr ""
-"// Tout au début du programme:\n"
-"object chose; // déclaration de la variable\n"
-"\n"
-"// Cherche la fourmi la plus proche\n"
-"chose = radar(AlienAnt);"
-
-#. type: Plain text
-#: ../E/radar.txt:17
-#, no-wrap
-msgid "Detects an object according to several parameters. "
-msgstr "Détecte un objet selon divers critères."
-
-#. type: Image filename
-#: ../E/radar.txt:19
-#, no-wrap
-msgid "radar1"
-msgstr "radar1"
-
-#. type: Plain text
-#: ../E/radar.txt:20
-#, no-wrap
-msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
-msgstr "La zone arrondie violette correspond, vue d'en haut, à la zone dans laquelle les objets sont détectés."
-
#. type: \t; header
#: ../E/search.txt:7
#, no-wrap
msgid "category: int
"
msgstr "catégorie: int
"
-#. type: Plain text
-#: ../E/radar.txt:34
-#, no-wrap
-msgid ""
-"Direction that the radar is facing, in degrees. \n"
-" 0
-> radar is facing straight ahead\n"
-"-90
-> radar is facing a quarter turn right\n"
-" 90
-> radar is facing a quarter turn left"
-msgstr ""
-"Direction dans laquelle est dirigé le radar, en degrés.\n"
-" 0
-> radar dirigé droit devant\n"
-"-90
-> radar dirigé à gauche\n"
-" 90
-> radar dirigé à droite"
-
-#. type: Plain text
-#: ../E/radar.txt:40
-#, no-wrap
-msgid "Opening angle of the radar, in degrees. "
-msgstr "Angle d'ouverture du radar, en degrés."
-
-#. type: Plain text
-#: ../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: Plain text
-#: ../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: Plain text
-#: ../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:65 ../E/retobj.txt:10 ../E/search.txt:22
#, no-wrap
msgid "Return value: object
"
msgstr "Valeur retournée: object
"
-#. type: Plain text
-#: ../E/radar.txt:66
-#, 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:68
#, no-wrap
msgid "Remark"
msgstr "Remarque"
-#. type: Plain text
-#: ../E/radar.txt:69
-#, 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:71
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // identique"
-
-#. type: Source code
-#: ../E/radar.txt:74
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // identique"
-
-#. type: Plain text
-#: ../E/radar.txt:77
-#, 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"
-"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
-msgstr ""
-"En fait, lorsque des paramètres manquent, ils prennent les valeurs par défaut indiquées plus haut. Le premier paramètre catégorie
est obligatoire. Les cinq paramètres suivants sont facultatifs, et sont remplacés par 0
, 360
, 0
, 1000
et 1
s'ils manquent.\n"
-"Ceci est très utile. En effet, radar(XXX)
trouve l'objet le plus proche, où qu'il soit."
-
#. type: \b; header
#: ../E/readln.txt:1
#, no-wrap
@@ -5952,7 +5820,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/radar.txt:22
+#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/detect.txt:11 ../E/factory.txt:10 ../E/radar.txt:22
#, no-wrap
msgid "cat: int
"
msgstr ""
@@ -6258,7 +6126,7 @@ msgid "canbuild ( cat );"
msgstr ""
#. type: \t; header
-#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/researched.txt:10
+#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/detect.txt:23 ../E/researched.txt:10
#, no-wrap
msgid "Return value: bool
"
msgstr ""
@@ -7427,7 +7295,7 @@ msgid "Array of categories of the objects that should be detec
msgstr ""
#. type: Bullet: 'o'
-#: ../E/radar.txt:23
+#: ../E/detect.txt:12 ../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 ""
@@ -7438,41 +7306,6 @@ msgstr ""
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: \t; header
-#: ../E/radar.txt:33
-#, no-wrap
-msgid "angle: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:39
-#, no-wrap
-msgid "focus: float
(default value: 360
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:42
-#, no-wrap
-msgid "min: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:48
-#, no-wrap
-msgid "sens: float
(default value: 1
)"
-msgstr ""
-
#. type: Plain text
#: ../E/search.txt:5
#, no-wrap
@@ -7509,12 +7342,6 @@ msgstr ""
msgid "position: point
(default value: this.position
)"
msgstr ""
-#. type: \t; header
-#: ../E/radar.txt:45
-#, no-wrap
-msgid "max: float
(default value: 1000
)"
-msgstr ""
-
#. type: \b; header
#: ../E/destroy.txt:1
#, no-wrap
@@ -7574,59 +7401,11 @@ msgid ""
msgstr ""
#. type: Bullet: 'o'
-#: ../E/search.txt:17
+#: ../E/detect.txt:21 ../E/search.txt:17
#, no-wrap
msgid "Keyword Any if you are looking for any object (including even plants and so on)."
msgstr ""
-#. type: Source code
-#: ../E/radar.txt:15
-#, no-wrap
-msgid "radar ( cat, angle, focus, min, max, sens, filter );"
-msgstr ""
-
-#. type: Bullet: 'o'
-#: ../E/radar.txt:31
-#, no-wrap
-msgid "Keyword Any if you are looking for any object (including even plants and so on). Filters may be useful to use with this keyword."
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:51
-#, no-wrap
-msgid "filter: int
(default value: FilterNone
)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:52
-#, no-wrap
-msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:54
-#, no-wrap
-msgid ""
-"FilterNone
Detects everything (default)\n"
-"FilterOnlyLanding
Detects only objects being on the ground\n"
-"FilterOnlyFlying
Detects only objects not being on the ground\n"
-"FilterFriendly
Detects only allies (objects in the same team)\n"
-"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
-"FilterNeutral
Detects only neutral objects (e.g. resources)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:61
-#, no-wrap
-msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:63
-#, no-wrap
-msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
-msgstr ""
-
#. type: \b; header
#: ../E/switch.txt:1
#, no-wrap
@@ -7761,3 +7540,265 @@ msgstr ""
#, no-wrap
msgid "You can exit from the the switch() {}
instruction using break
."
msgstr ""
+
+#. type: \b; header
+#: ../E/detect.txt:1
+#, no-wrap
+msgid "Instruction detect
"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:6
+#, no-wrap
+msgid "detect ( cat );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:8
+#, no-wrap
+msgid "Detects the nearest object of the specified category being in front of the bot. It is similar to the following instruction:"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:9
+#, no-wrap
+msgid "radar(cat, 0, 45, 0, 20);"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:14
+#, no-wrap
+msgid ""
+"int bots[4];\n"
+"bots[0] = WheeledGrabber;\n"
+"bots[1] = TrackedGrabber;\n"
+"bots[2] = WingedGrabber;\n"
+"bots[3] = LeggedGrabber;\n"
+"object nearestGrabber = radar(bots);"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:24
+#, no-wrap
+msgid ""
+"true if the object was found\n"
+"false if the object was not found"
+msgstr ""
+
+#. type: \b; header
+#: ../E/radar.txt:1
+#, no-wrap
+msgid "Instruction radar
"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:2
+#, no-wrap
+msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:5
+#, no-wrap
+msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:7
+#, no-wrap
+msgid ""
+"// At the beginning of the program:\n"
+"object item; // variable declaration\n"
+"\n"
+"// Look for the closest ant\n"
+"item = radar(AlienAnt);"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:15
+#, no-wrap
+msgid "radar ( cat, angle, focus, min, max, sens, filter );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:17
+#, no-wrap
+msgid "Detects an object according to several parameters. "
+msgstr ""
+
+#. type: Image filename
+#: ../E/radar.txt:19
+#, no-wrap
+msgid "radar1"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:20
+#, no-wrap
+msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
+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 (including even plants and so on). Filters may be useful to use with this keyword."
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:33
+#, no-wrap
+msgid "angle: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:34
+#, no-wrap
+msgid ""
+"Direction that the radar is facing, in degrees. \n"
+" 0
-> radar is facing straight ahead\n"
+"-90
-> radar is facing a quarter turn right\n"
+" 90
-> radar is facing a quarter turn left"
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:39
+#, no-wrap
+msgid "focus: float
(default value: 360
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:40
+#, no-wrap
+msgid "Opening angle of the radar, in degrees. "
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:42
+#, no-wrap
+msgid "min: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:45
+#, no-wrap
+msgid "max: float
(default value: 1000
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:48
+#, no-wrap
+msgid "sens: float
(default value: 1
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:51
+#, no-wrap
+msgid "filter: int
(default value: FilterNone
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:52
+#, no-wrap
+msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:54
+#, no-wrap
+msgid ""
+"FilterNone
Detects everything (default)\n"
+"FilterOnlyLanding
Detects only objects being on the ground\n"
+"FilterOnlyFlying
Detects only objects not being on the ground\n"
+"FilterFriendly
Detects only allies (objects in the same team)\n"
+"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
+"FilterNeutral
Detects only neutral objects (e.g. resources)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:61
+#, no-wrap
+msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:63
+#, no-wrap
+msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:66
+#, 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: Plain text
+#: ../E/radar.txt:69
+#, 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:71
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 360, 0, 1000);\n"
+"\tradar(Titanium); // equivalent"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:74
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 90, 0, 1000);\n"
+"\tradar(Titanium, 0, 90); // equivalent"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:77
+#, 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"
+"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:2
+#, no-wrap
+msgid "With the instruction detect();, you can look for objects like enemies, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of radar();."
+msgstr ""
+
+#. type: Bullet: 'o'
+#: ../E/detect.txt:13
+#, no-wrap
+msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:"
+msgstr ""
diff --git a/help/cbot/po/pl.po b/help/cbot/po/pl.po
index e1d77522..93555659 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/destroy.txt:15 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:15 ../E/detect.txt:27 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:16 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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/destroy.txt:16 ../E/detect.txt:28 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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."
@@ -1137,13 +1137,13 @@ msgstr ""
"\tmove(distance(position, item.position) - 40);"
#. type: \b; header, \t; header
-#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
+#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/detect.txt:4 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#, no-wrap
msgid "For specialists"
msgstr "Dla specjalistów"
#. type: Plain text
-#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
+#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/detect.txt:5 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
#, no-wrap
msgid "Syntax:"
msgstr "Składnia:"
@@ -3606,156 +3606,24 @@ msgstr ""
"class
, private
, funkcje
\n"
"Programowanie, typy i kategorie."
-#. type: \b; header
-#: ../E/radar.txt:1
-#, no-wrap
-msgid "Instruction radar
"
-msgstr "Instrukcja radar
"
-
-#. type: Plain text
-#: ../E/radar.txt:2
-#, no-wrap
-msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
-msgstr "Przy użyciu instrukcji radar()
, można znajdować różne obiekty, takie jak wrogów, roboty, budynki lub surowce."
-
-#. type: Plain text
-#: ../E/radar.txt:5
-#, no-wrap
-msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
-msgstr "W nawiasach należy napisać nazwę poszukiwanego obiektu. Wynik należy umieścić w zmiennej typu object
. Oto przykład znajdujący najbliższą mrówkę:"
-
-#. type: Source code
-#: ../E/radar.txt:7
-#, no-wrap
-msgid ""
-"// At the beginning of the program:\n"
-"object item; // variable declaration\n"
-"\n"
-"// Look for the closest ant\n"
-"item = radar(AlienAnt);"
-msgstr ""
-"// Na początku programu:\n"
-"object item; // deklaracja zmiennej\n"
-"\n"
-"// Znajdź najbliższą mrówkę\n"
-"item = radar(AlienAnt);"
-
-#. type: Plain text
-#: ../E/radar.txt:17
-#, no-wrap
-msgid "Detects an object according to several parameters. "
-msgstr "Wykrywa obiekty w zależnie od różnych parametrów. "
-
-#. type: Image filename
-#: ../E/radar.txt:19
-#, no-wrap
-msgid "radar1"
-msgstr "radar1"
-
-#. type: Plain text
-#: ../E/radar.txt:20
-#, no-wrap
-msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
-msgstr "Patrząc z góry, czerwona strefa odpowiada strefie, w której będą wykrywane obiekty. "
-
#. type: \t; header
#: ../E/search.txt:7
#, no-wrap
msgid "category: int
"
msgstr "kategoria: int
"
-#. type: Plain text
-#: ../E/radar.txt:34
-#, no-wrap
-msgid ""
-"Direction that the radar is facing, in degrees. \n"
-" 0
-> radar is facing straight ahead\n"
-"-90
-> radar is facing a quarter turn right\n"
-" 90
-> radar is facing a quarter turn left"
-msgstr ""
-"Kierunek, w którym \"patrzy\" radar, w stopniach: \n"
-" 0
-> na wprost \n"
-"-90
-> ćwierć obrotu w prawo\n"
-" 90
-> ćwierć obrotu w lewo"
-
-#. type: Plain text
-#: ../E/radar.txt:40
-#, no-wrap
-msgid "Opening angle of the radar, in degrees. "
-msgstr "Kąt widzenia radaru, w stopniach. "
-
-#. type: Plain text
-#: ../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: Plain text
-#: ../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: Plain text
-#: ../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:65 ../E/retobj.txt:10 ../E/search.txt:22
#, no-wrap
msgid "Return value: object
"
msgstr "Typ wyniku: object
"
-#. type: Plain text
-#: ../E/radar.txt:66
-#, 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:68
#, no-wrap
msgid "Remark"
msgstr "Uwaga"
-#. type: Plain text
-#: ../E/radar.txt:69
-#, 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:71
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // równoważne"
-
-#. type: Source code
-#: ../E/radar.txt:74
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // równoważne"
-
-#. type: Plain text
-#: ../E/radar.txt:77
-#, 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"
-"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
-msgstr ""
-"Jeśli pominięto jeden lub więcej parametrów, przyjmowane są wymienione powyżej wartości domyślne; tylko pierwszy parametr jest obowiązkowy.\n"
-"Zwykle określony jest tylko pierwszy parametr, np. radar (AlienAnt)
wykrywa najbliższą mrówkę, niezależnie od jej położenia. "
-
#. type: \b; header
#: ../E/readln.txt:1
#, no-wrap
@@ -6001,7 +5869,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/radar.txt:22
+#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/detect.txt:11 ../E/factory.txt:10 ../E/radar.txt:22
#, no-wrap
msgid "cat: int
"
msgstr ""
@@ -6307,7 +6175,7 @@ msgid "canbuild ( cat );"
msgstr ""
#. type: \t; header
-#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/researched.txt:10
+#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/detect.txt:23 ../E/researched.txt:10
#, no-wrap
msgid "Return value: bool
"
msgstr ""
@@ -7476,7 +7344,7 @@ msgid "Array of categories of the objects that should be detec
msgstr ""
#. type: Bullet: 'o'
-#: ../E/radar.txt:23
+#: ../E/detect.txt:12 ../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 ""
@@ -7487,41 +7355,6 @@ msgstr ""
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: \t; header
-#: ../E/radar.txt:33
-#, no-wrap
-msgid "angle: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:39
-#, no-wrap
-msgid "focus: float
(default value: 360
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:42
-#, no-wrap
-msgid "min: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:48
-#, no-wrap
-msgid "sens: float
(default value: 1
)"
-msgstr ""
-
#. type: Plain text
#: ../E/search.txt:5
#, no-wrap
@@ -7558,12 +7391,6 @@ msgstr ""
msgid "position: point
(default value: this.position
)"
msgstr ""
-#. type: \t; header
-#: ../E/radar.txt:45
-#, no-wrap
-msgid "max: float
(default value: 1000
)"
-msgstr ""
-
#. type: \b; header
#: ../E/destroy.txt:1
#, no-wrap
@@ -7623,59 +7450,11 @@ msgid ""
msgstr ""
#. type: Bullet: 'o'
-#: ../E/search.txt:17
+#: ../E/detect.txt:21 ../E/search.txt:17
#, no-wrap
msgid "Keyword Any if you are looking for any object (including even plants and so on)."
msgstr ""
-#. type: Source code
-#: ../E/radar.txt:15
-#, no-wrap
-msgid "radar ( cat, angle, focus, min, max, sens, filter );"
-msgstr ""
-
-#. type: Bullet: 'o'
-#: ../E/radar.txt:31
-#, no-wrap
-msgid "Keyword Any if you are looking for any object (including even plants and so on). Filters may be useful to use with this keyword."
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:51
-#, no-wrap
-msgid "filter: int
(default value: FilterNone
)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:52
-#, no-wrap
-msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:54
-#, no-wrap
-msgid ""
-"FilterNone
Detects everything (default)\n"
-"FilterOnlyLanding
Detects only objects being on the ground\n"
-"FilterOnlyFlying
Detects only objects not being on the ground\n"
-"FilterFriendly
Detects only allies (objects in the same team)\n"
-"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
-"FilterNeutral
Detects only neutral objects (e.g. resources)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:61
-#, no-wrap
-msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:63
-#, no-wrap
-msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
-msgstr ""
-
#. type: \b; header
#: ../E/switch.txt:1
#, no-wrap
@@ -7810,3 +7589,265 @@ msgstr ""
#, no-wrap
msgid "You can exit from the the switch() {}
instruction using break
."
msgstr ""
+
+#. type: \b; header
+#: ../E/detect.txt:1
+#, no-wrap
+msgid "Instruction detect
"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:6
+#, no-wrap
+msgid "detect ( cat );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:8
+#, no-wrap
+msgid "Detects the nearest object of the specified category being in front of the bot. It is similar to the following instruction:"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:9
+#, no-wrap
+msgid "radar(cat, 0, 45, 0, 20);"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:14
+#, no-wrap
+msgid ""
+"int bots[4];\n"
+"bots[0] = WheeledGrabber;\n"
+"bots[1] = TrackedGrabber;\n"
+"bots[2] = WingedGrabber;\n"
+"bots[3] = LeggedGrabber;\n"
+"object nearestGrabber = radar(bots);"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:24
+#, no-wrap
+msgid ""
+"true if the object was found\n"
+"false if the object was not found"
+msgstr ""
+
+#. type: \b; header
+#: ../E/radar.txt:1
+#, no-wrap
+msgid "Instruction radar
"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:2
+#, no-wrap
+msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:5
+#, no-wrap
+msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:7
+#, no-wrap
+msgid ""
+"// At the beginning of the program:\n"
+"object item; // variable declaration\n"
+"\n"
+"// Look for the closest ant\n"
+"item = radar(AlienAnt);"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:15
+#, no-wrap
+msgid "radar ( cat, angle, focus, min, max, sens, filter );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:17
+#, no-wrap
+msgid "Detects an object according to several parameters. "
+msgstr ""
+
+#. type: Image filename
+#: ../E/radar.txt:19
+#, no-wrap
+msgid "radar1"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:20
+#, no-wrap
+msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
+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 (including even plants and so on). Filters may be useful to use with this keyword."
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:33
+#, no-wrap
+msgid "angle: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:34
+#, no-wrap
+msgid ""
+"Direction that the radar is facing, in degrees. \n"
+" 0
-> radar is facing straight ahead\n"
+"-90
-> radar is facing a quarter turn right\n"
+" 90
-> radar is facing a quarter turn left"
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:39
+#, no-wrap
+msgid "focus: float
(default value: 360
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:40
+#, no-wrap
+msgid "Opening angle of the radar, in degrees. "
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:42
+#, no-wrap
+msgid "min: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:45
+#, no-wrap
+msgid "max: float
(default value: 1000
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:48
+#, no-wrap
+msgid "sens: float
(default value: 1
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:51
+#, no-wrap
+msgid "filter: int
(default value: FilterNone
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:52
+#, no-wrap
+msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:54
+#, no-wrap
+msgid ""
+"FilterNone
Detects everything (default)\n"
+"FilterOnlyLanding
Detects only objects being on the ground\n"
+"FilterOnlyFlying
Detects only objects not being on the ground\n"
+"FilterFriendly
Detects only allies (objects in the same team)\n"
+"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
+"FilterNeutral
Detects only neutral objects (e.g. resources)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:61
+#, no-wrap
+msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:63
+#, no-wrap
+msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:66
+#, 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: Plain text
+#: ../E/radar.txt:69
+#, 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:71
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 360, 0, 1000);\n"
+"\tradar(Titanium); // equivalent"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:74
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 90, 0, 1000);\n"
+"\tradar(Titanium, 0, 90); // equivalent"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:77
+#, 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"
+"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:2
+#, no-wrap
+msgid "With the instruction detect();, you can look for objects like enemies, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of radar();."
+msgstr ""
+
+#. type: Bullet: 'o'
+#: ../E/detect.txt:13
+#, no-wrap
+msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:"
+msgstr ""
diff --git a/help/cbot/po/ru.po b/help/cbot/po/ru.po
index 51ff43e1..71b7a3f7 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/destroy.txt:15 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:15 ../E/detect.txt:27 ../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:80 ../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:25 ../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/switch.txt:70 ../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/destroy.txt:16 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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/destroy.txt:16 ../E/detect.txt:28 ../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:81 ../E/recycle.txt:13 ../E/retobj.txt:14 ../E/return.txt:30 ../E/search.txt:26 ../E/shield.txt:19 ../E/sizeof.txt:22 ../E/sniff.txt:17 ../E/space.txt:23 ../E/string.txt:33 ../E/switch.txt:71 ../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 "Программирование, типы и категории."
@@ -1136,13 +1136,13 @@ msgstr ""
"\tmove(distance(position, item.position) - 40);"
#. type: \b; header, \t; header
-#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
+#: ../E/build.txt:13 ../E/buildingenabled.txt:12 ../E/canbuild.txt:12 ../E/detect.txt:4 ../E/dist.txt:17 ../E/drop.txt:11 ../E/errmode.txt:4 ../E/file.txt:10 ../E/fire.txt:9 ../E/float.txt:19 ../E/goto.txt:11 ../E/grab.txt:11 ../E/if.txt:22 ../E/int.txt:13 ../E/motor.txt:14 ../E/move.txt:7 ../E/radar.txt:13 ../E/return.txt:9 ../E/switch.txt:46 ../E/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#, no-wrap
msgid "For specialists"
msgstr "Для специалистов"
#. type: Plain text
-#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
+#: ../E/acos.txt:2 ../E/aim.txt:2 ../E/asin.txt:2 ../E/atan.txt:2 ../E/atan2.txt:2 ../E/build.txt:14 ../E/buildingenabled.txt:13 ../E/busy.txt:2 ../E/canbuild.txt:13 ../E/canresearch.txt:2 ../E/ceil.txt:2 ../E/cos.txt:2 ../E/destroy.txt:2 ../E/detect.txt:5 ../E/dist.txt:18 ../E/dist2d.txt:2 ../E/do.txt:2 ../E/drop.txt:12 ../E/factory.txt:2 ../E/fire.txt:10 ../E/flatspace.txt:2 ../E/floor.txt:2 ../E/for.txt:2 ../E/goto.txt:12 ../E/grab.txt:12 ../E/if.txt:23 ../E/jet.txt:2 ../E/message.txt:2 ../E/move.txt:8 ../E/pencolor.txt:2 ../E/pendown.txt:2 ../E/penup.txt:2 ../E/penwidth.txt:2 ../E/pow.txt:2 ../E/radar.txt:14 ../E/rand.txt:2 ../E/receive.txt:2 ../E/recycle.txt:2 ../E/research.txt:2 ../E/researched.txt:2 ../E/retobj.txt:2 ../E/round.txt:2 ../E/search.txt:2 ../E/shield.txt:2 ../E/sin.txt:2 ../E/sniff.txt:2 ../E/space.txt:2 ../E/sqrt.txt:2 ../E/switch.txt:47 ../E/takeoff.txt:2 ../E/tan.txt:2 ../E/thump.txt:2 ../E/topo.txt:2 ../E/trunc.txt:2 ../E/turn.txt:19 ../E/wait.txt:10
#, no-wrap
msgid "Syntax:"
msgstr "Синтаксис:"
@@ -3575,156 +3575,24 @@ msgstr ""
"class
, private
, functions
\n"
"Программирование, типы и категории."
-#. type: \b; header
-#: ../E/radar.txt:1
-#, no-wrap
-msgid "Instruction radar
"
-msgstr "Инструкция radar
"
-
-#. type: Plain text
-#: ../E/radar.txt:2
-#, no-wrap
-msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
-msgstr "С помощью инструкции radar()
вы можете следить за такими объектами как враги, боты, здания или природные ископаемые."
-
-#. type: Plain text
-#: ../E/radar.txt:5
-#, no-wrap
-msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
-msgstr "В скобках напишите название объекта, который вы ищете. Поместите результат в переменную типа объекта
. Вот пример поиска ближайшего муравья:"
-
-#. type: Source code
-#: ../E/radar.txt:7
-#, no-wrap
-msgid ""
-"// At the beginning of the program:\n"
-"object item; // variable declaration\n"
-"\n"
-"// Look for the closest ant\n"
-"item = radar(AlienAnt);"
-msgstr ""
-"// В начале программы:\n"
-"object item; // объявление переменной\n"
-"\n"
-"// Поиск ближайшего муравья\n"
-"item = radar(AlienAnt);"
-
-#. type: Plain text
-#: ../E/radar.txt:17
-#, no-wrap
-msgid "Detects an object according to several parameters. "
-msgstr "Обнаруживает объект в соответствии с несколькими параметрами."
-
-#. type: Image filename
-#: ../E/radar.txt:19
-#, no-wrap
-msgid "radar1"
-msgstr "radar1"
-
-#. type: Plain text
-#: ../E/radar.txt:20
-#, no-wrap
-msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
-msgstr "Как видно выше, пурпурная зона соответствует зоне, где будут обнаружены объекты."
-
#. type: \t; header
#: ../E/search.txt:7
#, no-wrap
msgid "category: int
"
msgstr "категория: int
"
-#. type: Plain text
-#: ../E/radar.txt:34
-#, no-wrap
-msgid ""
-"Direction that the radar is facing, in degrees. \n"
-" 0
-> radar is facing straight ahead\n"
-"-90
-> radar is facing a quarter turn right\n"
-" 90
-> radar is facing a quarter turn left"
-msgstr ""
-"Направление, в котором смотрит радар, в градусах.\n"
-" 0
-> радар смотрит прямо вперед\n"
-"-90
-> радар смотрит на четверть круга вправо\n"
-" 90
-> радар смотрит на четверть круга влево"
-
-#. type: Plain text
-#: ../E/radar.txt:40
-#, no-wrap
-msgid "Opening angle of the radar, in degrees. "
-msgstr "Угол раскрытия радара в градусах."
-
-#. type: Plain text
-#: ../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: Plain text
-#: ../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: Plain text
-#: ../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:65 ../E/retobj.txt:10 ../E/search.txt:22
#, no-wrap
msgid "Return value: object
"
msgstr "Возвращаемое значение: object
"
-#. type: Plain text
-#: ../E/radar.txt:66
-#, 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:68
#, no-wrap
msgid "Remark"
msgstr "Замечание"
-#. type: Plain text
-#: ../E/radar.txt:69
-#, 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:71
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 360, 0, 1000);\n"
-"\tradar(Titanium); // эквивалентна предыдущей"
-
-#. type: Source code
-#: ../E/radar.txt:74
-#, no-wrap
-msgid ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // equivalent"
-msgstr ""
-"\tradar(Titanium, 0, 90, 0, 1000);\n"
-"\tradar(Titanium, 0, 90); // эквивалентна предыдущей"
-
-#. type: Plain text
-#: ../E/radar.txt:77
-#, 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"
-"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
-msgstr ""
-"Когда не определен один или более параметров, то используются указанные выше значения по умолчанию; обязателен только первый параметр.\n"
-"Обычно указывается только первый параметр: например radar (AlienAnt)
обнаружит ближайшего муравья, где бы он ни был."
-
#. type: \b; header
#: ../E/readln.txt:1
#, no-wrap
@@ -5961,7 +5829,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/radar.txt:22
+#: ../E/build.txt:19 ../E/buildingenabled.txt:16 ../E/canbuild.txt:16 ../E/detect.txt:11 ../E/factory.txt:10 ../E/radar.txt:22
#, no-wrap
msgid "cat: int
"
msgstr ""
@@ -6267,7 +6135,7 @@ msgid "canbuild ( cat );"
msgstr ""
#. type: \t; header
-#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/researched.txt:10
+#: ../E/buildingenabled.txt:19 ../E/busy.txt:10 ../E/canbuild.txt:19 ../E/canresearch.txt:10 ../E/detect.txt:23 ../E/researched.txt:10
#, no-wrap
msgid "Return value: bool
"
msgstr ""
@@ -7436,7 +7304,7 @@ msgid "Array of categories of the objects that should be detec
msgstr ""
#. type: Bullet: 'o'
-#: ../E/radar.txt:23
+#: ../E/detect.txt:12 ../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 ""
@@ -7447,41 +7315,6 @@ msgstr ""
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: \t; header
-#: ../E/radar.txt:33
-#, no-wrap
-msgid "angle: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:39
-#, no-wrap
-msgid "focus: float
(default value: 360
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:42
-#, no-wrap
-msgid "min: float
(default value: 0
)"
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:48
-#, no-wrap
-msgid "sens: float
(default value: 1
)"
-msgstr ""
-
#. type: Plain text
#: ../E/search.txt:5
#, no-wrap
@@ -7518,12 +7351,6 @@ msgstr ""
msgid "position: point
(default value: this.position
)"
msgstr ""
-#. type: \t; header
-#: ../E/radar.txt:45
-#, no-wrap
-msgid "max: float
(default value: 1000
)"
-msgstr ""
-
#. type: \b; header
#: ../E/destroy.txt:1
#, no-wrap
@@ -7583,59 +7410,11 @@ msgid ""
msgstr ""
#. type: Bullet: 'o'
-#: ../E/search.txt:17
+#: ../E/detect.txt:21 ../E/search.txt:17
#, no-wrap
msgid "Keyword Any if you are looking for any object (including even plants and so on)."
msgstr ""
-#. type: Source code
-#: ../E/radar.txt:15
-#, no-wrap
-msgid "radar ( cat, angle, focus, min, max, sens, filter );"
-msgstr ""
-
-#. type: Bullet: 'o'
-#: ../E/radar.txt:31
-#, no-wrap
-msgid "Keyword Any if you are looking for any object (including even plants and so on). Filters may be useful to use with this keyword."
-msgstr ""
-
-#. type: \t; header
-#: ../E/radar.txt:51
-#, no-wrap
-msgid "filter: int
(default value: FilterNone
)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:52
-#, no-wrap
-msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:54
-#, no-wrap
-msgid ""
-"FilterNone
Detects everything (default)\n"
-"FilterOnlyLanding
Detects only objects being on the ground\n"
-"FilterOnlyFlying
Detects only objects not being on the ground\n"
-"FilterFriendly
Detects only allies (objects in the same team)\n"
-"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
-"FilterNeutral
Detects only neutral objects (e.g. resources)"
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:61
-#, no-wrap
-msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
-msgstr ""
-
-#. type: Plain text
-#: ../E/radar.txt:63
-#, no-wrap
-msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
-msgstr ""
-
#. type: \b; header
#: ../E/switch.txt:1
#, no-wrap
@@ -7770,3 +7549,265 @@ msgstr ""
#, no-wrap
msgid "You can exit from the the switch() {}
instruction using break
."
msgstr ""
+
+#. type: \b; header
+#: ../E/detect.txt:1
+#, no-wrap
+msgid "Instruction detect
"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:6
+#, no-wrap
+msgid "detect ( cat );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:8
+#, no-wrap
+msgid "Detects the nearest object of the specified category being in front of the bot. It is similar to the following instruction:"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:9
+#, no-wrap
+msgid "radar(cat, 0, 45, 0, 20);"
+msgstr ""
+
+#. type: Source code
+#: ../E/detect.txt:14
+#, no-wrap
+msgid ""
+"int bots[4];\n"
+"bots[0] = WheeledGrabber;\n"
+"bots[1] = TrackedGrabber;\n"
+"bots[2] = WingedGrabber;\n"
+"bots[3] = LeggedGrabber;\n"
+"object nearestGrabber = radar(bots);"
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:24
+#, no-wrap
+msgid ""
+"true if the object was found\n"
+"false if the object was not found"
+msgstr ""
+
+#. type: \b; header
+#: ../E/radar.txt:1
+#, no-wrap
+msgid "Instruction radar
"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:2
+#, no-wrap
+msgid "With the instruction radar()
, you can look for objects like enemies, bots, buildings or raw materials."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:5
+#, no-wrap
+msgid "Write in brackets the name of the object that you look for. Put the result in a variable of the type object
. Here is an example that looks for the closest ant:"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:7
+#, no-wrap
+msgid ""
+"// At the beginning of the program:\n"
+"object item; // variable declaration\n"
+"\n"
+"// Look for the closest ant\n"
+"item = radar(AlienAnt);"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:15
+#, no-wrap
+msgid "radar ( cat, angle, focus, min, max, sens, filter );"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:17
+#, no-wrap
+msgid "Detects an object according to several parameters. "
+msgstr ""
+
+#. type: Image filename
+#: ../E/radar.txt:19
+#, no-wrap
+msgid "radar1"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:20
+#, no-wrap
+msgid "Seen from above, the purple zone corresponds to the zone where objects will be detected. "
+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 (including even plants and so on). Filters may be useful to use with this keyword."
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:33
+#, no-wrap
+msgid "angle: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:34
+#, no-wrap
+msgid ""
+"Direction that the radar is facing, in degrees. \n"
+" 0
-> radar is facing straight ahead\n"
+"-90
-> radar is facing a quarter turn right\n"
+" 90
-> radar is facing a quarter turn left"
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:39
+#, no-wrap
+msgid "focus: float
(default value: 360
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:40
+#, no-wrap
+msgid "Opening angle of the radar, in degrees. "
+msgstr ""
+
+#. type: \t; header
+#: ../E/radar.txt:42
+#, no-wrap
+msgid "min: float
(default value: 0
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:45
+#, no-wrap
+msgid "max: float
(default value: 1000
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:48
+#, no-wrap
+msgid "sens: float
(default value: 1
)"
+msgstr ""
+
+#. type: Plain text
+#: ../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:51
+#, no-wrap
+msgid "filter: int
(default value: FilterNone
)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:52
+#, no-wrap
+msgid "Determines which type of objects should be detected. Especially useful in use with an array or Any. The following filters are available:"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:54
+#, no-wrap
+msgid ""
+"FilterNone
Detects everything (default)\n"
+"FilterOnlyLanding
Detects only objects being on the ground\n"
+"FilterOnlyFlying
Detects only objects not being on the ground\n"
+"FilterFriendly
Detects only allies (objects in the same team)\n"
+"FilterEnemy
Detects only enemies (objects in an other team except neutral)\n"
+"FilterNeutral
Detects only neutral objects (e.g. resources)"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:61
+#, no-wrap
+msgid "The last three are mainly useful in code battles. You can also pass a team ID to search only for objects from a specific team. Attention: you should use FilterNeutral instead of 0
or else it will not work."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:63
+#, no-wrap
+msgid "Filters and IDs can be mixed using bitwise OR operator |
, for example radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding); will only detect an object from team 2
that is on the ground. Attention: you can specify only one team ID at once, but you can specify several filters at once."
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:66
+#, 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: Plain text
+#: ../E/radar.txt:69
+#, 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:71
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 360, 0, 1000);\n"
+"\tradar(Titanium); // equivalent"
+msgstr ""
+
+#. type: Source code
+#: ../E/radar.txt:74
+#, no-wrap
+msgid ""
+"\tradar(Titanium, 0, 90, 0, 1000);\n"
+"\tradar(Titanium, 0, 90); // equivalent"
+msgstr ""
+
+#. type: Plain text
+#: ../E/radar.txt:77
+#, 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"
+"Generally, only the first parameter is specified: f. ex. radar (AlienAnt)
detects the closest ant, wherever it may be. "
+msgstr ""
+
+#. type: Plain text
+#: ../E/detect.txt:2
+#, no-wrap
+msgid "With the instruction detect();, you can look for objects like enemies, bots, buildings or raw materials, which are in front of the bot. It is a simpler version of radar();."
+msgstr ""
+
+#. type: Bullet: 'o'
+#: ../E/detect.txt:13
+#, no-wrap
+msgid "Array of categories of the objects that should be detected. For example, when you are looking only for grabbers:"
+msgstr ""
diff --git a/help/generic/E/cbot.txt b/help/generic/E/cbot.txt
index ddd2b251..934f681e 100644
--- a/help/generic/E/cbot.txt
+++ b/help/generic/E/cbot.txt
@@ -27,7 +27,8 @@ Constants like \l;categories\u cbot\category; are displayed with a red backgroun
\c;\l;sizeof\u cbot\sizeof; \n;Size of an array
\t;Specific instructions for bots:
-\c;\l;radar\u cbot\radar; \n;Object detection
+\c;\l;detect\u cbot\detect; \n;Simple object detection
+\c;\l;radar\u cbot\radar; \n;Advanced object detection
\c;\l;search\u cbot\search; \n;Object detection from a specific point
\c;\l;direction\u cbot\direct; \n;Calculates a rotation angle
\c;\l;distance\u cbot\dist; \n;Calculates a distance
diff --git a/help/generic/po/de.po b/help/generic/po/de.po
index 7b5c45a6..d6193703 100644
--- a/help/generic/po/de.po
+++ b/help/generic/po/de.po
@@ -111,25 +111,25 @@ msgid "Specific instructions for bots:"
msgstr "Befehle für die Steuerung der Roboter:"
#. type: \t; header
-#: ../E/cbot.txt:52
+#: ../E/cbot.txt:53
#, no-wrap
msgid "Instructions about topology:"
msgstr "Befehle für die Erforschung des Geländes:"
#. type: \t; header
-#: ../E/cbot.txt:58
+#: ../E/cbot.txt:59
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Befehle für bestimmte Roboter:"
#. type: \t; header
-#: ../E/cbot.txt:77
+#: ../E/cbot.txt:78
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Befehle für den Austausch mit Infoservern:"
#. type: Plain text
-#: ../E/cbot.txt:78
+#: ../E/cbot.txt:79
#, no-wrap
msgid ""
"receive
Receives an information\n"
@@ -143,13 +143,13 @@ msgstr ""
"deleteinfo
Löscht eine Information"
#. type: \t; header
-#: ../E/cbot.txt:83
+#: ../E/cbot.txt:84
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Befehle für die Verwaltung von Klassen:"
#. type: Plain text
-#: ../E/cbot.txt:84
+#: ../E/cbot.txt:85
#, no-wrap
msgid ""
"class
Class declararion\n"
@@ -169,13 +169,13 @@ msgstr ""
"this
Bezieht sich auf die laufende Instanz"
#. type: \t; header
-#: ../E/cbot.txt:92
+#: ../E/cbot.txt:93
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Befehle für die Verarbeitung von Strings (Zeichenketten):"
#. type: Plain text
-#: ../E/cbot.txt:93
+#: ../E/cbot.txt:94
#, no-wrap
msgid ""
"strlen
Gets string length\n"
@@ -197,13 +197,13 @@ msgstr ""
"strlower
Umwandlung in Kleinbuchstaben"
#. type: \t; header
-#: ../E/cbot.txt:102
+#: ../E/cbot.txt:103
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Befehle für die Dateiverwaltung:"
#. type: Plain text
-#: ../E/cbot.txt:103
+#: ../E/cbot.txt:104
#, no-wrap
msgid ""
"open
Opens a file\n"
@@ -221,13 +221,13 @@ msgstr ""
"deletefile
Löscht eine Datei"
#. type: \t; header
-#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
+#: ../E/battles.txt:40 ../E/cbot.txt:127 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Siehe auch"
#. type: Plain text
-#: ../E/cbot.txt:127
+#: ../E/cbot.txt:128
#, no-wrap
msgid "Types and categories."
msgstr "Variablentypen und Kategorien."
@@ -519,13 +519,13 @@ msgid "Colobot: Gold Edition developers"
msgstr "Die Colobot: Gold Edition Entwickler"
#. type: \t; header
-#: ../E/cbot.txt:110
+#: ../E/cbot.txt:111
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:59
+#: ../E/cbot.txt:60
#, no-wrap
msgid ""
"grab
Picks up an object\n"
@@ -542,7 +542,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:111
+#: ../E/cbot.txt:112
#, no-wrap
msgid ""
"rand
Returns a random value\n"
@@ -562,13 +562,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:71
+#: ../E/cbot.txt:72
#, no-wrap
msgid "Instructions specific for some objects:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:72
+#: ../E/cbot.txt:73
#, no-wrap
msgid ""
"factory
Starts construction of a bot\n"
@@ -578,7 +578,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:53
+#: ../E/cbot.txt:54
#, no-wrap
msgid ""
"space
Calculates a free space\n"
@@ -587,33 +587,6 @@ msgid ""
"flatground
Returns radius of a flat area"
msgstr ""
-#. type: Plain text
-#: ../E/cbot.txt:30
-#, no-wrap
-msgid ""
-"radar
Object detection\n"
-"search
Object detection from a specific point\n"
-"direction
Calculates a rotation angle\n"
-"distance
Calculates a distance\n"
-"distance2d
Calculates a distance\n"
-"wait
Waits\n"
-"move
Moves forward or backward\n"
-"turn
Turns\n"
-"goto
Goes to a given position\n"
-"motor
Direct motor control\n"
-"jet
Direct jet engine control\n"
-"message
Displays a message\n"
-"retobject
Returns an object from a function\n"
-"errmode
Error treatement control\n"
-"abstime
Returns the absolute time\n"
-"pendown
Starts drawing\n"
-"penup
Stops drawing\n"
-"pencolor
Changes the pen color\n"
-"penwidth
Changes the pen width\n"
-"canresearch
Checks if a technology can be researched\n"
-"researched
Checks if a technology is researched"
-msgstr ""
-
#. type: \b; header
#: ../E/battles.txt:1
#, no-wrap
@@ -761,3 +734,31 @@ msgid ""
"return
Exit from a function\n"
"sizeof
Size of an array"
msgstr ""
+
+#. type: Plain text
+#: ../E/cbot.txt:30
+#, no-wrap
+msgid ""
+"detect
Simple object detection\n"
+"radar
Advanced object detection\n"
+"search
Object detection from a specific point\n"
+"direction
Calculates a rotation angle\n"
+"distance
Calculates a distance\n"
+"distance2d
Calculates a distance\n"
+"wait
Waits\n"
+"move
Moves forward or backward\n"
+"turn
Turns\n"
+"goto
Goes to a given position\n"
+"motor
Direct motor control\n"
+"jet
Direct jet engine control\n"
+"message
Displays a message\n"
+"retobject
Returns an object from a function\n"
+"errmode
Error treatement control\n"
+"abstime
Returns the absolute time\n"
+"pendown
Starts drawing\n"
+"penup
Stops drawing\n"
+"pencolor
Changes the pen color\n"
+"penwidth
Changes the pen width\n"
+"canresearch
Checks if a technology can be researched\n"
+"researched
Checks if a technology is researched"
+msgstr ""
diff --git a/help/generic/po/fr.po b/help/generic/po/fr.po
index afefee3b..cefe6465 100644
--- a/help/generic/po/fr.po
+++ b/help/generic/po/fr.po
@@ -123,25 +123,25 @@ msgid "Specific instructions for bots:"
msgstr "Instructions pour les robots:"
#. type: \t; header
-#: ../E/cbot.txt:52
+#: ../E/cbot.txt:53
#, no-wrap
msgid "Instructions about topology:"
msgstr "Instructions sur le terrain:"
#. type: \t; header
-#: ../E/cbot.txt:58
+#: ../E/cbot.txt:59
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Instructions spécifiques à certains robots:"
#. type: \t; header
-#: ../E/cbot.txt:77
+#: ../E/cbot.txt:78
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Instructions pour les bornes d'infomation:"
#. type: Plain text
-#: ../E/cbot.txt:78
+#: ../E/cbot.txt:79
#, no-wrap
msgid ""
"receive
Receives an information\n"
@@ -155,13 +155,13 @@ msgstr ""
"deleteinfo
Supprime une information"
#. type: \t; header
-#: ../E/cbot.txt:83
+#: ../E/cbot.txt:84
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Instructions pour les classes:"
#. type: Plain text
-#: ../E/cbot.txt:84
+#: ../E/cbot.txt:85
#, no-wrap
msgid ""
"class
Class declararion\n"
@@ -181,13 +181,13 @@ msgstr ""
"this
Référence l'instance courante"
#. type: \t; header
-#: ../E/cbot.txt:92
+#: ../E/cbot.txt:93
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Instructions pour les chaînes de caractères:"
#. type: Plain text
-#: ../E/cbot.txt:93
+#: ../E/cbot.txt:94
#, no-wrap
msgid ""
"strlen
Gets string length\n"
@@ -209,13 +209,13 @@ msgstr ""
"strlower
Convertit en minuscules."
#. type: \t; header
-#: ../E/cbot.txt:102
+#: ../E/cbot.txt:103
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Instructions pour les fichiers:"
#. type: Plain text
-#: ../E/cbot.txt:103
+#: ../E/cbot.txt:104
#, no-wrap
msgid ""
"open
Opens a file\n"
@@ -233,13 +233,13 @@ msgstr ""
"deletefile
Supprime un fichier"
#. type: \t; header
-#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
+#: ../E/battles.txt:40 ../E/cbot.txt:127 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Voir aussi"
#. type: Plain text
-#: ../E/cbot.txt:127
+#: ../E/cbot.txt:128
#, no-wrap
msgid "Types and categories."
msgstr "Types et catégories."
@@ -514,13 +514,13 @@ msgstr ""
"La Grande Migration va débuter très prochainement ..."
#. type: \t; header
-#: ../E/cbot.txt:110
+#: ../E/cbot.txt:111
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:59
+#: ../E/cbot.txt:60
#, no-wrap
msgid ""
"grab
Picks up an object\n"
@@ -537,7 +537,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:111
+#: ../E/cbot.txt:112
#, no-wrap
msgid ""
"rand
Returns a random value\n"
@@ -557,13 +557,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:71
+#: ../E/cbot.txt:72
#, no-wrap
msgid "Instructions specific for some objects:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:72
+#: ../E/cbot.txt:73
#, no-wrap
msgid ""
"factory
Starts construction of a bot\n"
@@ -573,7 +573,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:53
+#: ../E/cbot.txt:54
#, no-wrap
msgid ""
"space
Calculates a free space\n"
@@ -582,33 +582,6 @@ msgid ""
"flatground
Returns radius of a flat area"
msgstr ""
-#. type: Plain text
-#: ../E/cbot.txt:30
-#, no-wrap
-msgid ""
-"radar
Object detection\n"
-"search
Object detection from a specific point\n"
-"direction
Calculates a rotation angle\n"
-"distance
Calculates a distance\n"
-"distance2d
Calculates a distance\n"
-"wait
Waits\n"
-"move
Moves forward or backward\n"
-"turn
Turns\n"
-"goto
Goes to a given position\n"
-"motor
Direct motor control\n"
-"jet
Direct jet engine control\n"
-"message
Displays a message\n"
-"retobject
Returns an object from a function\n"
-"errmode
Error treatement control\n"
-"abstime
Returns the absolute time\n"
-"pendown
Starts drawing\n"
-"penup
Stops drawing\n"
-"pencolor
Changes the pen color\n"
-"penwidth
Changes the pen width\n"
-"canresearch
Checks if a technology can be researched\n"
-"researched
Checks if a technology is researched"
-msgstr ""
-
#. type: \b; header
#: ../E/battles.txt:1
#, no-wrap
@@ -756,3 +729,31 @@ msgid ""
"return
Exit from a function\n"
"sizeof
Size of an array"
msgstr ""
+
+#. type: Plain text
+#: ../E/cbot.txt:30
+#, no-wrap
+msgid ""
+"detect
Simple object detection\n"
+"radar
Advanced object detection\n"
+"search
Object detection from a specific point\n"
+"direction
Calculates a rotation angle\n"
+"distance
Calculates a distance\n"
+"distance2d
Calculates a distance\n"
+"wait
Waits\n"
+"move
Moves forward or backward\n"
+"turn
Turns\n"
+"goto
Goes to a given position\n"
+"motor
Direct motor control\n"
+"jet
Direct jet engine control\n"
+"message
Displays a message\n"
+"retobject
Returns an object from a function\n"
+"errmode
Error treatement control\n"
+"abstime
Returns the absolute time\n"
+"pendown
Starts drawing\n"
+"penup
Stops drawing\n"
+"pencolor
Changes the pen color\n"
+"penwidth
Changes the pen width\n"
+"canresearch
Checks if a technology can be researched\n"
+"researched
Checks if a technology is researched"
+msgstr ""
diff --git a/help/generic/po/generic.pot b/help/generic/po/generic.pot
index bfe06c77..8203ae2a 100644
--- a/help/generic/po/generic.pot
+++ b/help/generic/po/generic.pot
@@ -109,25 +109,25 @@ msgid "Specific instructions for bots:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:52
+#: ../E/cbot.txt:53
#, no-wrap
msgid "Instructions about topology:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:58
+#: ../E/cbot.txt:59
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:77
+#: ../E/cbot.txt:78
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:78
+#: ../E/cbot.txt:79
#, no-wrap
msgid ""
"receive
Receives an information\n"
@@ -137,13 +137,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:83
+#: ../E/cbot.txt:84
#, no-wrap
msgid "Specific instructions for classes:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:84
+#: ../E/cbot.txt:85
#, no-wrap
msgid ""
"class
Class declararion\n"
@@ -156,13 +156,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:92
+#: ../E/cbot.txt:93
#, no-wrap
msgid "Specific instructions for strings:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:93
+#: ../E/cbot.txt:94
#, no-wrap
msgid ""
"strlen
Gets string length\n"
@@ -176,13 +176,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:102
+#: ../E/cbot.txt:103
#, no-wrap
msgid "Specific instructions for files:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:103
+#: ../E/cbot.txt:104
#, no-wrap
msgid ""
"open
Opens a file\n"
@@ -194,13 +194,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
+#: ../E/battles.txt:40 ../E/cbot.txt:127 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:127
+#: ../E/cbot.txt:128
#, no-wrap
msgid "Types and categories."
msgstr ""
@@ -454,13 +454,13 @@ msgid "Colobot: Gold Edition developers"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:110
+#: ../E/cbot.txt:111
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:59
+#: ../E/cbot.txt:60
#, no-wrap
msgid ""
"grab
Picks up an object\n"
@@ -477,7 +477,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:111
+#: ../E/cbot.txt:112
#, no-wrap
msgid ""
"rand
Returns a random value\n"
@@ -497,13 +497,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:71
+#: ../E/cbot.txt:72
#, no-wrap
msgid "Instructions specific for some objects:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:72
+#: ../E/cbot.txt:73
#, no-wrap
msgid ""
"factory
Starts construction of a bot\n"
@@ -513,7 +513,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:53
+#: ../E/cbot.txt:54
#, no-wrap
msgid ""
"space
Calculates a free space\n"
@@ -522,33 +522,6 @@ msgid ""
"flatground
Returns radius of a flat area"
msgstr ""
-#. type: Plain text
-#: ../E/cbot.txt:30
-#, no-wrap
-msgid ""
-"radar
Object detection\n"
-"search
Object detection from a specific point\n"
-"direction
Calculates a rotation angle\n"
-"distance
Calculates a distance\n"
-"distance2d
Calculates a distance\n"
-"wait
Waits\n"
-"move
Moves forward or backward\n"
-"turn
Turns\n"
-"goto
Goes to a given position\n"
-"motor
Direct motor control\n"
-"jet
Direct jet engine control\n"
-"message
Displays a message\n"
-"retobject
Returns an object from a function\n"
-"errmode
Error treatement control\n"
-"abstime
Returns the absolute time\n"
-"pendown
Starts drawing\n"
-"penup
Stops drawing\n"
-"pencolor
Changes the pen color\n"
-"penwidth
Changes the pen width\n"
-"canresearch
Checks if a technology can be researched\n"
-"researched
Checks if a technology is researched"
-msgstr ""
-
#. type: \b; header
#: ../E/battles.txt:1
#, no-wrap
@@ -696,3 +669,31 @@ msgid ""
"return
Exit from a function\n"
"sizeof
Size of an array"
msgstr ""
+
+#. type: Plain text
+#: ../E/cbot.txt:30
+#, no-wrap
+msgid ""
+"detect
Simple object detection\n"
+"radar
Advanced object detection\n"
+"search
Object detection from a specific point\n"
+"direction
Calculates a rotation angle\n"
+"distance
Calculates a distance\n"
+"distance2d
Calculates a distance\n"
+"wait
Waits\n"
+"move
Moves forward or backward\n"
+"turn
Turns\n"
+"goto
Goes to a given position\n"
+"motor
Direct motor control\n"
+"jet
Direct jet engine control\n"
+"message
Displays a message\n"
+"retobject
Returns an object from a function\n"
+"errmode
Error treatement control\n"
+"abstime
Returns the absolute time\n"
+"pendown
Starts drawing\n"
+"penup
Stops drawing\n"
+"pencolor
Changes the pen color\n"
+"penwidth
Changes the pen width\n"
+"canresearch
Checks if a technology can be researched\n"
+"researched
Checks if a technology is researched"
+msgstr ""
diff --git a/help/generic/po/pl.po b/help/generic/po/pl.po
index 17705439..949ecda0 100644
--- a/help/generic/po/pl.po
+++ b/help/generic/po/pl.po
@@ -125,25 +125,25 @@ msgid "Specific instructions for bots:"
msgstr "Instrukcje specyficzne dla robotów:"
#. type: \t; header
-#: ../E/cbot.txt:52
+#: ../E/cbot.txt:53
#, no-wrap
msgid "Instructions about topology:"
msgstr "Instrukcje związane z topologią terenu:"
#. type: \t; header
-#: ../E/cbot.txt:58
+#: ../E/cbot.txt:59
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Instrukcje specyficzne dla niektórych robotów:"
#. type: \t; header
-#: ../E/cbot.txt:77
+#: ../E/cbot.txt:78
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Instrukcje specyficzne dla stacji przekaźnikowych:"
#. type: Plain text
-#: ../E/cbot.txt:78
+#: ../E/cbot.txt:79
#, no-wrap
msgid ""
"receive
Receives an information\n"
@@ -157,13 +157,13 @@ msgstr ""
"deleteinfo
Usuwa istniejącą informację"
#. type: \t; header
-#: ../E/cbot.txt:83
+#: ../E/cbot.txt:84
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Instrukcje specyficzne dla klas:"
#. type: Plain text
-#: ../E/cbot.txt:84
+#: ../E/cbot.txt:85
#, no-wrap
msgid ""
"class
Class declararion\n"
@@ -183,13 +183,13 @@ msgstr ""
"this
Odwołanie do bieżącej instancji"
#. type: \t; header
-#: ../E/cbot.txt:92
+#: ../E/cbot.txt:93
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Instrukcje specyficzne dla łańcuchów:"
#. type: Plain text
-#: ../E/cbot.txt:93
+#: ../E/cbot.txt:94
#, no-wrap
msgid ""
"strlen
Gets string length\n"
@@ -211,13 +211,13 @@ msgstr ""
"strlower
Zamienia litery na małe"
#. type: \t; header
-#: ../E/cbot.txt:102
+#: ../E/cbot.txt:103
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Instrukcje specyficzne dla plików:"
#. type: Plain text
-#: ../E/cbot.txt:103
+#: ../E/cbot.txt:104
#, no-wrap
msgid ""
"open
Opens a file\n"
@@ -235,13 +235,13 @@ msgstr ""
"deletefile
Usuwa plik"
#. type: \t; header
-#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
+#: ../E/battles.txt:40 ../E/cbot.txt:127 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Zobacz również"
#. type: Plain text
-#: ../E/cbot.txt:127
+#: ../E/cbot.txt:128
#, no-wrap
msgid "Types and categories."
msgstr "Typy i kategorie."
@@ -521,13 +521,13 @@ msgstr ""
"Niebawem roczpocznie się Wielka Migracja na Nową Ziemię."
#. type: \t; header
-#: ../E/cbot.txt:110
+#: ../E/cbot.txt:111
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:59
+#: ../E/cbot.txt:60
#, no-wrap
msgid ""
"grab
Picks up an object\n"
@@ -544,7 +544,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:111
+#: ../E/cbot.txt:112
#, no-wrap
msgid ""
"rand
Returns a random value\n"
@@ -564,13 +564,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:71
+#: ../E/cbot.txt:72
#, no-wrap
msgid "Instructions specific for some objects:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:72
+#: ../E/cbot.txt:73
#, no-wrap
msgid ""
"factory
Starts construction of a bot\n"
@@ -580,7 +580,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:53
+#: ../E/cbot.txt:54
#, no-wrap
msgid ""
"space
Calculates a free space\n"
@@ -589,33 +589,6 @@ msgid ""
"flatground
Returns radius of a flat area"
msgstr ""
-#. type: Plain text
-#: ../E/cbot.txt:30
-#, no-wrap
-msgid ""
-"radar
Object detection\n"
-"search
Object detection from a specific point\n"
-"direction
Calculates a rotation angle\n"
-"distance
Calculates a distance\n"
-"distance2d
Calculates a distance\n"
-"wait
Waits\n"
-"move
Moves forward or backward\n"
-"turn
Turns\n"
-"goto
Goes to a given position\n"
-"motor
Direct motor control\n"
-"jet
Direct jet engine control\n"
-"message
Displays a message\n"
-"retobject
Returns an object from a function\n"
-"errmode
Error treatement control\n"
-"abstime
Returns the absolute time\n"
-"pendown
Starts drawing\n"
-"penup
Stops drawing\n"
-"pencolor
Changes the pen color\n"
-"penwidth
Changes the pen width\n"
-"canresearch
Checks if a technology can be researched\n"
-"researched
Checks if a technology is researched"
-msgstr ""
-
#. type: \b; header
#: ../E/battles.txt:1
#, no-wrap
@@ -763,3 +736,31 @@ msgid ""
"return
Exit from a function\n"
"sizeof
Size of an array"
msgstr ""
+
+#. type: Plain text
+#: ../E/cbot.txt:30
+#, no-wrap
+msgid ""
+"detect
Simple object detection\n"
+"radar
Advanced object detection\n"
+"search
Object detection from a specific point\n"
+"direction
Calculates a rotation angle\n"
+"distance
Calculates a distance\n"
+"distance2d
Calculates a distance\n"
+"wait
Waits\n"
+"move
Moves forward or backward\n"
+"turn
Turns\n"
+"goto
Goes to a given position\n"
+"motor
Direct motor control\n"
+"jet
Direct jet engine control\n"
+"message
Displays a message\n"
+"retobject
Returns an object from a function\n"
+"errmode
Error treatement control\n"
+"abstime
Returns the absolute time\n"
+"pendown
Starts drawing\n"
+"penup
Stops drawing\n"
+"pencolor
Changes the pen color\n"
+"penwidth
Changes the pen width\n"
+"canresearch
Checks if a technology can be researched\n"
+"researched
Checks if a technology is researched"
+msgstr ""
diff --git a/help/generic/po/ru.po b/help/generic/po/ru.po
index 95c61e3e..049a7166 100644
--- a/help/generic/po/ru.po
+++ b/help/generic/po/ru.po
@@ -121,25 +121,25 @@ msgid "Specific instructions for bots:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:52
+#: ../E/cbot.txt:53
#, no-wrap
msgid "Instructions about topology:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:58
+#: ../E/cbot.txt:59
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:77
+#: ../E/cbot.txt:78
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:78
+#: ../E/cbot.txt:79
#, no-wrap
msgid ""
"receive
Receives an information\n"
@@ -149,13 +149,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:83
+#: ../E/cbot.txt:84
#, no-wrap
msgid "Specific instructions for classes:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:84
+#: ../E/cbot.txt:85
#, no-wrap
msgid ""
"class
Class declararion\n"
@@ -168,13 +168,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:92
+#: ../E/cbot.txt:93
#, no-wrap
msgid "Specific instructions for strings:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:93
+#: ../E/cbot.txt:94
#, no-wrap
msgid ""
"strlen
Gets string length\n"
@@ -188,13 +188,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:102
+#: ../E/cbot.txt:103
#, no-wrap
msgid "Specific instructions for files:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:103
+#: ../E/cbot.txt:104
#, no-wrap
msgid ""
"open
Opens a file\n"
@@ -206,13 +206,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
+#: ../E/battles.txt:40 ../E/cbot.txt:127 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "См. также"
#. type: Plain text
-#: ../E/cbot.txt:127
+#: ../E/cbot.txt:128
#, no-wrap
msgid "Types and categories."
msgstr ""
@@ -492,13 +492,13 @@ msgstr ""
"Большое переселение на Терра Нову начнется очень скоро."
#. type: \t; header
-#: ../E/cbot.txt:110
+#: ../E/cbot.txt:111
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:59
+#: ../E/cbot.txt:60
#, no-wrap
msgid ""
"grab
Picks up an object\n"
@@ -515,7 +515,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:111
+#: ../E/cbot.txt:112
#, no-wrap
msgid ""
"rand
Returns a random value\n"
@@ -535,13 +535,13 @@ msgid ""
msgstr ""
#. type: \t; header
-#: ../E/cbot.txt:71
+#: ../E/cbot.txt:72
#, no-wrap
msgid "Instructions specific for some objects:"
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:72
+#: ../E/cbot.txt:73
#, no-wrap
msgid ""
"factory
Starts construction of a bot\n"
@@ -551,7 +551,7 @@ msgid ""
msgstr ""
#. type: Plain text
-#: ../E/cbot.txt:53
+#: ../E/cbot.txt:54
#, no-wrap
msgid ""
"space
Calculates a free space\n"
@@ -560,33 +560,6 @@ msgid ""
"flatground
Returns radius of a flat area"
msgstr ""
-#. type: Plain text
-#: ../E/cbot.txt:30
-#, no-wrap
-msgid ""
-"radar
Object detection\n"
-"search
Object detection from a specific point\n"
-"direction
Calculates a rotation angle\n"
-"distance
Calculates a distance\n"
-"distance2d
Calculates a distance\n"
-"wait
Waits\n"
-"move
Moves forward or backward\n"
-"turn
Turns\n"
-"goto
Goes to a given position\n"
-"motor
Direct motor control\n"
-"jet
Direct jet engine control\n"
-"message
Displays a message\n"
-"retobject
Returns an object from a function\n"
-"errmode
Error treatement control\n"
-"abstime
Returns the absolute time\n"
-"pendown
Starts drawing\n"
-"penup
Stops drawing\n"
-"pencolor
Changes the pen color\n"
-"penwidth
Changes the pen width\n"
-"canresearch
Checks if a technology can be researched\n"
-"researched
Checks if a technology is researched"
-msgstr ""
-
#. type: \b; header
#: ../E/battles.txt:1
#, no-wrap
@@ -734,3 +707,31 @@ msgid ""
"return
Exit from a function\n"
"sizeof
Size of an array"
msgstr ""
+
+#. type: Plain text
+#: ../E/cbot.txt:30
+#, no-wrap
+msgid ""
+"detect
Simple object detection\n"
+"radar
Advanced object detection\n"
+"search
Object detection from a specific point\n"
+"direction
Calculates a rotation angle\n"
+"distance
Calculates a distance\n"
+"distance2d
Calculates a distance\n"
+"wait
Waits\n"
+"move
Moves forward or backward\n"
+"turn
Turns\n"
+"goto
Goes to a given position\n"
+"motor
Direct motor control\n"
+"jet
Direct jet engine control\n"
+"message
Displays a message\n"
+"retobject
Returns an object from a function\n"
+"errmode
Error treatement control\n"
+"abstime
Returns the absolute time\n"
+"pendown
Starts drawing\n"
+"penup
Stops drawing\n"
+"pencolor
Changes the pen color\n"
+"penwidth
Changes the pen width\n"
+"canresearch
Checks if a technology can be researched\n"
+"researched
Checks if a technology is researched"
+msgstr ""