Add the switch instruction documentation

coolant-mod
MrSimbax 2015-07-28 17:20:09 +02:00
parent c7b9205390
commit acfefa3f59
12 changed files with 1360 additions and 241 deletions

71
help/cbot/E/switch.txt Normal file
View File

@ -0,0 +1,71 @@
\b;Instructions \c;switch\n;, \c;case\n; and \c;default\n;
With the instruction \c;switch() {}\n; you can execute a proper set of instructions (a case) basing on some value.
\b;Basic use
Note: the \l;busy\u cbot\busy; instruction might be much better to use in this scenario.
See the following \l;function\u cbot\function;: the bot will be \l;waiting\u cbot\wait; a proper amount of time for a certain task to be completed:
\c;
\s;public void WaitForTaskCompleted(object building)
\s;{
\s; int cat = building.category;
\s; \l;if\u cbot\if; (cat == Converter) wait(15);
\s; else if (cat == BotFactory) wait(15);
\s; else if (cat == PowerPlant) wait(12);
\s; else message("Undefined wait time", DisplayError);
\s;}
\n;
This function can be also written using the \c;switch() {}\n; instruction:
\c;
\s;public void WaitForTaskCompleted(object building)
\s;{
\s; switch (building.category)
\s; {
\s; case Converter: wait(15); break;
\s; case BotFactory: wait(15); break;
\s; case PowerPlant: wait(12); break;
\s; default: message("Undefined wait time", DisplayError);
\s; }
\s;}
\n;
Which way to write this kind of choice structures, is a matter of taste.
You can also make cases like this:
\c;
\s;switch (building.category)
\s;{
\s; case Converter:
\s; case BotFactory:
\s; wait(15); break;
\s; case PowerPlant: wait(12); break;
\s; default: message("Undefined wait time", DisplayError);
\s;}
\n;
\l;Converter\u object\convert; and \l;bot factory\u object\factory; have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not \c;\l;break\u cbot\break;\n; it.
\b;For specialists
Syntax:
\s;\c;switch ( value )
\s;{
\s; case value1: instructions1
\s; case value2: instructions2
\s; ...
\s; case valueN: instructionsN
\s; default: instructionsDefault
\s;}
\n;
With this conditional structure you can execute \c;instructions1\n; or \c;instructions2\n; ... or \c;instructionsN\n; or \c;instructionsDefault\n; depending on the \c;value\n;.
If the \c;value\n; is equal to \c;value1\n;, \c;instructions1\n; to \c;N\n; (including \c;instructionsDefault\n;) are executed.
If the \c;value\n; is equal to \c;value2\n;, \c;instructions2\n; to \c;N\n; (including \c;instructionsDefault\n;) are executed.
And so on.
If the \c;value\n; is equal to \c;valueN\n;, \c;instructionsN\n; and \c;instructionsDefault\n; are executed.
If the \c;value\n; is not equal to any value in the given cases, \c;instructionsDefault\n; are executed.
You can exit from the the \c;switch() {}\n; instruction using \c;\l;break\u cbot\break;\n;.
\t;Attention
Do not put a \l;semicolon\u cbot\term; at the end of the \c;switch ( ) { }\n; instruction.
\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.

View File

@ -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/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/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/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/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 "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr ""
@ -891,7 +891,7 @@ msgid "With the instruction <code>distance( , )</code> you can calculate the dis
msgstr ""
#. type: \b; header
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/switch.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#, no-wrap
msgid "Basic use"
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/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#: ../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
#, 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/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/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 ""
@ -1045,7 +1045,7 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/while.txt:41
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/switch.txt:67 ../E/while.txt:41
#, no-wrap
msgid "Attention"
msgstr ""
@ -6868,6 +6868,167 @@ msgstr ""
msgid "Filters and IDs can be mixed using bitwise OR operator <code>|</code>, for example <c/>radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding);<n/> will only detect an object from team <code>2</code> 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
msgid "Instructions <code>switch</code>, <code>case</code> and <code>default</code>"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:2
#, no-wrap
msgid "With the instruction <code>switch() {}</code> you can execute a proper set of instructions (a case) basing on some value."
msgstr ""
#. type: Source code
#: ../E/switch.txt:9
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tint cat = building.category;\n"
"\t<a cbot|if>if</a> (cat == Converter) wait(15);\n"
"\telse if (cat == BotFactory) wait(15);\n"
"\telse if (cat == PowerPlant) wait(12);\n"
"\telse message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:18
#, no-wrap
msgid "This function can be also written using the <code>switch() {}</code> instruction:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:20
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tswitch (building.category)\n"
"\t{\n"
"\t\tcase Converter: wait(15); break;\n"
"\t\tcase BotFactory: wait(15); break;\n"
"\t\tcase PowerPlant: wait(12); break;\n"
"\t\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"\t}\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:31
#, no-wrap
msgid "Which way to write this kind of choice structures, is a matter of taste."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:33
#, no-wrap
msgid "You can also make cases like this:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:35
#, no-wrap
msgid ""
"switch (building.category)\n"
"{\n"
"\tcase Converter:\n"
"\tcase BotFactory:\n"
"\t\twait(15); break;\n"
"\tcase PowerPlant: wait(12); break;\n"
"\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Source code
#: ../E/switch.txt:48
#, no-wrap
msgid ""
"<c/>switch ( value )\n"
"{\n"
"\tcase value1: instructions1\n"
"\tcase value2: instructions2\n"
"\t...\n"
"\tcase valueN: instructionsN\n"
"\tdefault: instructionsDefault\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:5
#, no-wrap
msgid "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:7
#, no-wrap
msgid "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:44
#, no-wrap
msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <code><a cbot|break>break</a></code> it."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:57
#, no-wrap
msgid "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:59
#, no-wrap
msgid ""
"If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"And so on.\n"
"If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
"If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:68
#, no-wrap
msgid "Do not put a <a cbot|term>semicolon</a> at the end of the <code>switch ( ) { }</code> instruction."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:65
#, no-wrap
msgid "You can exit from the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
#~ msgstr ""
#~ msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <a cbot|break>break</a> it."
#~ msgstr ""
#~ msgid ""
#~ "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>.\n"
#~ "If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "And so on.\n"
#~ "If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
#~ "If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <a cbot|break>break</a>."
#~ msgstr ""
#~ msgid ""
#~ "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario.\n"
#~ "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
#~ msgstr ""
#~ msgid "With this conditional structure you can execute instruction1 or instructions2 ... or instructionsN or instructionsDefault depending on the <code>value</code>. If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. And so on. If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed. If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "The last three are mainly useful in <a battles>code battles</a>. You can also pass a team ID to search only for objects from a specific team."
#~ msgstr ""

View File

@ -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/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/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/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/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 "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr "Die <a cbot>CBOT-Sprache</a>, <a cbot|type>Variablentypen</a> und <a cbot|category>Kategorien</a>."
@ -1043,7 +1043,7 @@ msgid "With the instruction <code>distance( , )</code> you can calculate the dis
msgstr "Mit der Anweisung <code>distance( , )</code> können Sie die Distanz zwischen zwei Positionen berechnen."
#. type: \b; header
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/switch.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#, no-wrap
msgid "Basic use"
msgstr "Grundlagen"
@ -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/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#: ../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
#, 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/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/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:"
@ -1213,7 +1213,7 @@ msgstr ""
"while ( p == <a cbot|null>null</a> );"
#. type: \t; header
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/while.txt:41
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/switch.txt:67 ../E/while.txt:41
#, no-wrap
msgid "Attention"
msgstr "Achtung"
@ -7671,6 +7671,167 @@ msgstr ""
msgid "Filters and IDs can be mixed using bitwise OR operator <code>|</code>, for example <c/>radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding);<n/> will only detect an object from team <code>2</code> 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
msgid "Instructions <code>switch</code>, <code>case</code> and <code>default</code>"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:2
#, no-wrap
msgid "With the instruction <code>switch() {}</code> you can execute a proper set of instructions (a case) basing on some value."
msgstr ""
#. type: Source code
#: ../E/switch.txt:9
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tint cat = building.category;\n"
"\t<a cbot|if>if</a> (cat == Converter) wait(15);\n"
"\telse if (cat == BotFactory) wait(15);\n"
"\telse if (cat == PowerPlant) wait(12);\n"
"\telse message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:18
#, no-wrap
msgid "This function can be also written using the <code>switch() {}</code> instruction:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:20
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tswitch (building.category)\n"
"\t{\n"
"\t\tcase Converter: wait(15); break;\n"
"\t\tcase BotFactory: wait(15); break;\n"
"\t\tcase PowerPlant: wait(12); break;\n"
"\t\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"\t}\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:31
#, no-wrap
msgid "Which way to write this kind of choice structures, is a matter of taste."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:33
#, no-wrap
msgid "You can also make cases like this:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:35
#, no-wrap
msgid ""
"switch (building.category)\n"
"{\n"
"\tcase Converter:\n"
"\tcase BotFactory:\n"
"\t\twait(15); break;\n"
"\tcase PowerPlant: wait(12); break;\n"
"\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Source code
#: ../E/switch.txt:48
#, no-wrap
msgid ""
"<c/>switch ( value )\n"
"{\n"
"\tcase value1: instructions1\n"
"\tcase value2: instructions2\n"
"\t...\n"
"\tcase valueN: instructionsN\n"
"\tdefault: instructionsDefault\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:5
#, no-wrap
msgid "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:7
#, no-wrap
msgid "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:44
#, no-wrap
msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <code><a cbot|break>break</a></code> it."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:57
#, no-wrap
msgid "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:59
#, no-wrap
msgid ""
"If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"And so on.\n"
"If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
"If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:68
#, no-wrap
msgid "Do not put a <a cbot|term>semicolon</a> at the end of the <code>switch ( ) { }</code> instruction."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:65
#, no-wrap
msgid "You can exit from the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
#~ msgstr ""
#~ msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <a cbot|break>break</a> it."
#~ msgstr ""
#~ msgid ""
#~ "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>.\n"
#~ "If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "And so on.\n"
#~ "If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
#~ "If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <a cbot|break>break</a>."
#~ msgstr ""
#~ msgid ""
#~ "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario.\n"
#~ "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
#~ msgstr ""
#~ msgid "With this conditional structure you can execute instruction1 or instructions2 ... or instructionsN or instructionsDefault depending on the <code>value</code>. If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. And so on. If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed. If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "The last three are mainly useful in <a battles>code battles</a>. You can also pass a team ID to search only for objects from a specific team."
#~ msgstr ""

View File

@ -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/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/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/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/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 "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot>Programmation</a>, <a cbot|type>types</a> et <a cbot|category>catégories</a>."
@ -1082,7 +1082,7 @@ msgid "With the instruction <code>distance( , )</code> you can calculate the dis
msgstr "Avec l'instruction <code>distance( , )</code> vous pouvez calculer la distance entre deux positions. "
#. type: \b; header
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/switch.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#, no-wrap
msgid "Basic use"
msgstr "Utilisation courante"
@ -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/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#: ../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
#, 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/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/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:"
@ -1252,7 +1252,7 @@ msgstr ""
"while ( p == null );"
#. type: \t; header
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/while.txt:41
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/switch.txt:67 ../E/while.txt:41
#, no-wrap
msgid "Attention"
msgstr "Attention"
@ -7627,6 +7627,167 @@ msgstr ""
msgid "Filters and IDs can be mixed using bitwise OR operator <code>|</code>, for example <c/>radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding);<n/> will only detect an object from team <code>2</code> 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
msgid "Instructions <code>switch</code>, <code>case</code> and <code>default</code>"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:2
#, no-wrap
msgid "With the instruction <code>switch() {}</code> you can execute a proper set of instructions (a case) basing on some value."
msgstr ""
#. type: Source code
#: ../E/switch.txt:9
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tint cat = building.category;\n"
"\t<a cbot|if>if</a> (cat == Converter) wait(15);\n"
"\telse if (cat == BotFactory) wait(15);\n"
"\telse if (cat == PowerPlant) wait(12);\n"
"\telse message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:18
#, no-wrap
msgid "This function can be also written using the <code>switch() {}</code> instruction:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:20
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tswitch (building.category)\n"
"\t{\n"
"\t\tcase Converter: wait(15); break;\n"
"\t\tcase BotFactory: wait(15); break;\n"
"\t\tcase PowerPlant: wait(12); break;\n"
"\t\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"\t}\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:31
#, no-wrap
msgid "Which way to write this kind of choice structures, is a matter of taste."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:33
#, no-wrap
msgid "You can also make cases like this:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:35
#, no-wrap
msgid ""
"switch (building.category)\n"
"{\n"
"\tcase Converter:\n"
"\tcase BotFactory:\n"
"\t\twait(15); break;\n"
"\tcase PowerPlant: wait(12); break;\n"
"\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Source code
#: ../E/switch.txt:48
#, no-wrap
msgid ""
"<c/>switch ( value )\n"
"{\n"
"\tcase value1: instructions1\n"
"\tcase value2: instructions2\n"
"\t...\n"
"\tcase valueN: instructionsN\n"
"\tdefault: instructionsDefault\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:5
#, no-wrap
msgid "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:7
#, no-wrap
msgid "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:44
#, no-wrap
msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <code><a cbot|break>break</a></code> it."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:57
#, no-wrap
msgid "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:59
#, no-wrap
msgid ""
"If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"And so on.\n"
"If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
"If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:68
#, no-wrap
msgid "Do not put a <a cbot|term>semicolon</a> at the end of the <code>switch ( ) { }</code> instruction."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:65
#, no-wrap
msgid "You can exit from the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
#~ msgstr ""
#~ msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <a cbot|break>break</a> it."
#~ msgstr ""
#~ msgid ""
#~ "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>.\n"
#~ "If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "And so on.\n"
#~ "If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
#~ "If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <a cbot|break>break</a>."
#~ msgstr ""
#~ msgid ""
#~ "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario.\n"
#~ "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
#~ msgstr ""
#~ msgid "With this conditional structure you can execute instruction1 or instructions2 ... or instructionsN or instructionsDefault depending on the <code>value</code>. If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. And so on. If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed. If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "The last three are mainly useful in <a battles>code battles</a>. You can also pass a team ID to search only for objects from a specific team."
#~ msgstr ""

View File

@ -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/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/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/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/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 "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot>Programowanie</a>, <a cbot|type>typy</a> i <a cbot|category>kategorie</a>."
@ -1093,7 +1093,7 @@ msgid "With the instruction <code>distance( , )</code> you can calculate the dis
msgstr "Za pomocą instrukcji <code>distance( , )</code> można obliczyć odległość między dwoma punktami."
#. type: \b; header
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/switch.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#, no-wrap
msgid "Basic use"
msgstr "Podstawowe użycie"
@ -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/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#: ../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
#, 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/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/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:"
@ -1263,7 +1263,7 @@ msgstr ""
"while ( p == null );"
#. type: \t; header
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/while.txt:41
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/switch.txt:67 ../E/while.txt:41
#, no-wrap
msgid "Attention"
msgstr "Uwaga"
@ -7676,6 +7676,167 @@ msgstr ""
msgid "Filters and IDs can be mixed using bitwise OR operator <code>|</code>, for example <c/>radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding);<n/> will only detect an object from team <code>2</code> 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
msgid "Instructions <code>switch</code>, <code>case</code> and <code>default</code>"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:2
#, no-wrap
msgid "With the instruction <code>switch() {}</code> you can execute a proper set of instructions (a case) basing on some value."
msgstr ""
#. type: Source code
#: ../E/switch.txt:9
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tint cat = building.category;\n"
"\t<a cbot|if>if</a> (cat == Converter) wait(15);\n"
"\telse if (cat == BotFactory) wait(15);\n"
"\telse if (cat == PowerPlant) wait(12);\n"
"\telse message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:18
#, no-wrap
msgid "This function can be also written using the <code>switch() {}</code> instruction:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:20
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tswitch (building.category)\n"
"\t{\n"
"\t\tcase Converter: wait(15); break;\n"
"\t\tcase BotFactory: wait(15); break;\n"
"\t\tcase PowerPlant: wait(12); break;\n"
"\t\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"\t}\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:31
#, no-wrap
msgid "Which way to write this kind of choice structures, is a matter of taste."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:33
#, no-wrap
msgid "You can also make cases like this:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:35
#, no-wrap
msgid ""
"switch (building.category)\n"
"{\n"
"\tcase Converter:\n"
"\tcase BotFactory:\n"
"\t\twait(15); break;\n"
"\tcase PowerPlant: wait(12); break;\n"
"\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Source code
#: ../E/switch.txt:48
#, no-wrap
msgid ""
"<c/>switch ( value )\n"
"{\n"
"\tcase value1: instructions1\n"
"\tcase value2: instructions2\n"
"\t...\n"
"\tcase valueN: instructionsN\n"
"\tdefault: instructionsDefault\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:5
#, no-wrap
msgid "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:7
#, no-wrap
msgid "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:44
#, no-wrap
msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <code><a cbot|break>break</a></code> it."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:57
#, no-wrap
msgid "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:59
#, no-wrap
msgid ""
"If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"And so on.\n"
"If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
"If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:68
#, no-wrap
msgid "Do not put a <a cbot|term>semicolon</a> at the end of the <code>switch ( ) { }</code> instruction."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:65
#, no-wrap
msgid "You can exit from the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
#~ msgstr ""
#~ msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <a cbot|break>break</a> it."
#~ msgstr ""
#~ msgid ""
#~ "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>.\n"
#~ "If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "And so on.\n"
#~ "If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
#~ "If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <a cbot|break>break</a>."
#~ msgstr ""
#~ msgid ""
#~ "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario.\n"
#~ "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
#~ msgstr ""
#~ msgid "With this conditional structure you can execute instruction1 or instructions2 ... or instructionsN or instructionsDefault depending on the <code>value</code>. If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. And so on. If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed. If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "The last three are mainly useful in <a battles>code battles</a>. You can also pass a team ID to search only for objects from a specific team."
#~ msgstr ""

View File

@ -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/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/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/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/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 "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot>Программирование</a>, <a cbot|type>типы</a> и <a cbot|category>категории</a>."
@ -1092,7 +1092,7 @@ msgid "With the instruction <code>distance( , )</code> you can calculate the dis
msgstr "С помощью инструкции <code>distance( , )</code> вы можете подсчитывать расстояние между двумя позициями."
#. type: \b; header
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#: ../E/build.txt:4 ../E/buildingenabled.txt:4 ../E/canbuild.txt:4 ../E/dist.txt:4 ../E/drop.txt:4 ../E/fire.txt:4 ../E/function.txt:16 ../E/goto.txt:4 ../E/grab.txt:4 ../E/if.txt:4 ../E/motor.txt:4 ../E/move.txt:4 ../E/radar.txt:4 ../E/switch.txt:4 ../E/turn.txt:4 ../E/wait.txt:4 ../E/while.txt:4
#, no-wrap
msgid "Basic use"
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/turn.txt:18 ../E/wait.txt:9 ../E/while.txt:19
#: ../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
#, 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/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/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 "Синтаксис:"
@ -1262,7 +1262,7 @@ msgstr ""
"while ( p == null );"
#. type: \t; header
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/while.txt:41
#: ../E/do.txt:22 ../E/float.txt:11 ../E/for.txt:33 ../E/if.txt:36 ../E/int.txt:10 ../E/switch.txt:67 ../E/while.txt:41
#, no-wrap
msgid "Attention"
msgstr "Внимание"
@ -7636,6 +7636,167 @@ msgstr ""
msgid "Filters and IDs can be mixed using bitwise OR operator <code>|</code>, for example <c/>radar(Any, 0, 360, 0, 1000, 1, 2 | FilterOnlyLanding);<n/> will only detect an object from team <code>2</code> 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
msgid "Instructions <code>switch</code>, <code>case</code> and <code>default</code>"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:2
#, no-wrap
msgid "With the instruction <code>switch() {}</code> you can execute a proper set of instructions (a case) basing on some value."
msgstr ""
#. type: Source code
#: ../E/switch.txt:9
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tint cat = building.category;\n"
"\t<a cbot|if>if</a> (cat == Converter) wait(15);\n"
"\telse if (cat == BotFactory) wait(15);\n"
"\telse if (cat == PowerPlant) wait(12);\n"
"\telse message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:18
#, no-wrap
msgid "This function can be also written using the <code>switch() {}</code> instruction:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:20
#, no-wrap
msgid ""
"public void WaitForTaskCompleted(object building)\n"
"{\n"
"\tswitch (building.category)\n"
"\t{\n"
"\t\tcase Converter: wait(15); break;\n"
"\t\tcase BotFactory: wait(15); break;\n"
"\t\tcase PowerPlant: wait(12); break;\n"
"\t\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"\t}\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:31
#, no-wrap
msgid "Which way to write this kind of choice structures, is a matter of taste."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:33
#, no-wrap
msgid "You can also make cases like this:"
msgstr ""
#. type: Source code
#: ../E/switch.txt:35
#, no-wrap
msgid ""
"switch (building.category)\n"
"{\n"
"\tcase Converter:\n"
"\tcase BotFactory:\n"
"\t\twait(15); break;\n"
"\tcase PowerPlant: wait(12); break;\n"
"\tdefault: message(\"Undefined wait time\", DisplayError);\n"
"}"
msgstr ""
#. type: Source code
#: ../E/switch.txt:48
#, no-wrap
msgid ""
"<c/>switch ( value )\n"
"{\n"
"\tcase value1: instructions1\n"
"\tcase value2: instructions2\n"
"\t...\n"
"\tcase valueN: instructionsN\n"
"\tdefault: instructionsDefault\n"
"}"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:5
#, no-wrap
msgid "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:7
#, no-wrap
msgid "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
msgstr ""
#. type: Plain text
#: ../E/switch.txt:44
#, no-wrap
msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <code><a cbot|break>break</a></code> it."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:57
#, no-wrap
msgid "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:59
#, no-wrap
msgid ""
"If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
"And so on.\n"
"If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
"If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:68
#, no-wrap
msgid "Do not put a <a cbot|term>semicolon</a> at the end of the <code>switch ( ) { }</code> instruction."
msgstr ""
#. type: Plain text
#: ../E/switch.txt:65
#, no-wrap
msgid "You can exit from the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <code><a cbot|break>break</a></code>."
#~ msgstr ""
#~ msgid "<a object|convert>Converter</a> and <a object|factory>bot factory</a> have the same waiting time, so in order to not write the same instructions twice, we made multiple cases run the same code. In fact, all code after the highest case used will be executed if we do not <a cbot|break>break</a> it."
#~ msgstr ""
#~ msgid ""
#~ "With this conditional structure you can execute <code>instructions1</code> or <code>instructions2</code> ... or <code>instructionsN</code> or <code>instructionsDefault</code> depending on the <code>value</code>.\n"
#~ "If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed.\n"
#~ "And so on.\n"
#~ "If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed.\n"
#~ "If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "You can stop the the <code>switch() {}</code> instruction using <a cbot|break>break</a>."
#~ msgstr ""
#~ msgid ""
#~ "Note: the <a cbot|busy>busy</a> instruction might be much better to use in this scenario.\n"
#~ "See the following <a cbot|function>function</a>: the bot will be <a cbot|wait>waiting</a> a proper amount of time for a certain task to be completed:"
#~ msgstr ""
#~ msgid "With this conditional structure you can execute instruction1 or instructions2 ... or instructionsN or instructionsDefault depending on the <code>value</code>. If the <code>value</code> is equal to <code>value1</code>, <code>instructions1</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. If the <code>value</code> is equal to <code>value2</code>, <code>instructions2</code> to <code>N</code> (including <code>instructionsDefault</code>) are executed. And so on. If the <code>value</code> is equal to <code>valueN</code>, <code>instructionsN</code> and <code>instructionsDefault</code> are executed. If the <code>value</code> is not equal to any value in the given cases, <code>instructionsDefault</code> are executed."
#~ msgstr ""
#~ msgid "The last three are mainly useful in <a battles>code battles</a>. You can also pass a team ID to search only for objects from a specific team."
#~ msgstr ""

View File

@ -15,6 +15,9 @@ Constants like \l;categories\u cbot\category; are displayed with a red backgroun
\c;\l;extern\u cbot\extern; \n;Indicate the main function
\c;\l;if\u cbot\if; \n;Choice structure
\c;\l;else\u cbot\if; \n;Alternative choice structure
\c;\l;switch\u cbot\switch; \n;Multiple choice structure
\c;\l;case\u cbot\switch; \n;One choice
\c;\l;default\u cbot\switch; \n;Default choice
\c;\l;for\u cbot\for; \n;Loop structure
\c;\l;while\u cbot\while; \n;Control structure
\c;\l;do\u cbot\do; \n;Control structure

View File

@ -104,58 +104,32 @@ msgstr "Konstanten werden wie <a cbot|category>Kategorien</a> immer mit rotem Hi
msgid "Instructions in the CBOT language:"
msgstr "Befehle der CBOT-Sprache:"
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
"<code><a cbot|extern>extern</a> </code>Bezeichnet die Hauptfunktion\n"
"<code><a cbot|if>if</a> </code>Bedingte Struktur\n"
"<code><a cbot|if>else</a> </code>Alternative bedingte Struktur\n"
"<code><a cbot|for>for</a> </code>Schleifenstruktur\n"
"<code><a cbot|while>while</a> </code>Bedingte Schleifenstruktur\n"
"<code><a cbot|do>do</a> </code>Bedingte Schleifenstruktur\n"
"<code><a cbot|break>break</a> </code>Abbruch einer Schleife\n"
"<code><a cbot|continue>continue</a> </code>Neuanfang einer Schleife\n"
"<code><a cbot|return>return</a> </code>Rückkehr von einer Funktion\n"
"<code><a cbot|sizeof>sizeof</a> </code>Grösse eines Arrays"
#. type: \t; header
#: ../E/cbot.txt:26
#: ../E/cbot.txt:29
#, no-wrap
msgid "Specific instructions for bots:"
msgstr "Befehle für die Steuerung der Roboter:"
#. type: \t; header
#: ../E/cbot.txt:49
#: ../E/cbot.txt:52
#, no-wrap
msgid "Instructions about topology:"
msgstr "Befehle für die Erforschung des Geländes:"
#. type: \t; header
#: ../E/cbot.txt:55
#: ../E/cbot.txt:58
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Befehle für bestimmte Roboter:"
#. type: \t; header
#: ../E/cbot.txt:74
#: ../E/cbot.txt:77
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Befehle für den Austausch mit Infoservern:"
#. type: Plain text
#: ../E/cbot.txt:75
#: ../E/cbot.txt:78
#, no-wrap
msgid ""
"<code><a cbot|receive>receive</a> </code>Receives an information\n"
@ -169,13 +143,13 @@ msgstr ""
"<code><a cbot|delinfo>deleteinfo</a> </code>Löscht eine Information"
#. type: \t; header
#: ../E/cbot.txt:80
#: ../E/cbot.txt:83
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Befehle für die Verwaltung von Klassen:"
#. type: Plain text
#: ../E/cbot.txt:81
#: ../E/cbot.txt:84
#, no-wrap
msgid ""
"<code><a cbot|class>class</a> </code>Class declararion\n"
@ -195,13 +169,13 @@ msgstr ""
"<code><a cbot|this>this</a> </code>Bezieht sich auf die laufende Instanz"
#. type: \t; header
#: ../E/cbot.txt:89
#: ../E/cbot.txt:92
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Befehle für die Verarbeitung von Strings (Zeichenketten):"
#. type: Plain text
#: ../E/cbot.txt:90
#: ../E/cbot.txt:93
#, no-wrap
msgid ""
"<code><a cbot|strlen>strlen</a> </code>Gets string length\n"
@ -223,13 +197,13 @@ msgstr ""
"<code><a cbot|strlower>strlower</a> </code>Umwandlung in Kleinbuchstaben"
#. type: \t; header
#: ../E/cbot.txt:99
#: ../E/cbot.txt:102
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Befehle für die Dateiverwaltung:"
#. type: Plain text
#: ../E/cbot.txt:100
#: ../E/cbot.txt:103
#, no-wrap
msgid ""
"<code><a cbot|open>open</a> </code>Opens a file\n"
@ -247,13 +221,13 @@ msgstr ""
"<code><a cbot|deletef>deletefile</a> </code>Löscht eine Datei"
#. type: \t; header
#: ../E/battles.txt:40 ../E/cbot.txt:123 ../E/freehelp.txt:4
#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Siehe auch"
#. type: Plain text
#: ../E/cbot.txt:124
#: ../E/cbot.txt:127
#, no-wrap
msgid "<a cbot|type>Types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot|type>Variablentypen</a> und <a cbot|category>Kategorien</a>."
@ -545,13 +519,13 @@ msgid "Colobot: Gold Edition developers"
msgstr "Die Colobot: Gold Edition Entwickler"
#. type: \t; header
#: ../E/cbot.txt:107
#: ../E/cbot.txt:110
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:56
#: ../E/cbot.txt:59
#, no-wrap
msgid ""
"<code><a cbot|grab>grab</a> </code>Picks up an object\n"
@ -568,7 +542,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:108
#: ../E/cbot.txt:111
#, no-wrap
msgid ""
"<code><a cbot|rand>rand</a> </code>Returns a random value\n"
@ -588,13 +562,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:68
#: ../E/cbot.txt:71
#, no-wrap
msgid "Instructions specific for some <a cbot|object>objects</a>:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:69
#: ../E/cbot.txt:72
#, no-wrap
msgid ""
"<code><a cbot|factory>factory</a> </code>Starts construction of a bot\n"
@ -604,7 +578,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:50
#: ../E/cbot.txt:53
#, no-wrap
msgid ""
"<code><a cbot|space>space</a> </code>Calculates a free space\n"
@ -614,7 +588,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:27
#: ../E/cbot.txt:30
#, no-wrap
msgid ""
"<code><a cbot|radar>radar</a> </code>Object detection\n"
@ -769,6 +743,80 @@ msgstr ""
msgid "There is much more options, but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
"<code><a cbot|switch>case</a> </code>One choice\n"
"<code><a cbot|switch>default</a> </code>Default choice\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ "<code><a cbot|extern>extern</a> </code>Bezeichnet die Hauptfunktion\n"
#~ "<code><a cbot|if>if</a> </code>Bedingte Struktur\n"
#~ "<code><a cbot|if>else</a> </code>Alternative bedingte Struktur\n"
#~ "<code><a cbot|for>for</a> </code>Schleifenstruktur\n"
#~ "<code><a cbot|while>while</a> </code>Bedingte Schleifenstruktur\n"
#~ "<code><a cbot|do>do</a> </code>Bedingte Schleifenstruktur\n"
#~ "<code><a cbot|break>break</a> </code>Abbruch einer Schleife\n"
#~ "<code><a cbot|continue>continue</a> </code>Neuanfang einer Schleife\n"
#~ "<code><a cbot|return>return</a> </code>Rückkehr von einer Funktion\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Grösse eines Arrays"
#~ msgid "There is much more options (as there should be in an strategy game), but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
#~ msgstr ""

View File

@ -116,59 +116,32 @@ msgstr "Une constante telle qu'une <a cbot|category>catégorie</a> est coloriée
msgid "Instructions in the CBOT language:"
msgstr "Instructions générales du langage:"
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
"<code><a cbot|extern>extern</a> </code>Indique le programme principal\n"
"<code><a cbot|if>if</a> </code>Structure de choix\n"
"<code><a cbot|if>else</a> </code>Structure de choix\n"
"<code><a cbot|repeat>repeat</a> </code>Structure de répétition\n"
"<code><a cbot|for>for</a> </code>Structure de répétition\n"
"<code><a cbot|while>while</a> </code>Stucture de contrôle\n"
"<code><a cbot|do>do</a> </code>Stucture de contrôle\n"
"<code><a cbot|break>break</a> </code>Sortie d'un boucle\n"
"<code><a cbot|continue>continue</a> </code>Continue une boucle\n"
"<code><a cbot|return>return</a> </code>Sort d'une fonction\n"
"<code><a cbot|sizeof>sizeof</a> </code>Taille d'un tableau"
#. type: \t; header
#: ../E/cbot.txt:26
#: ../E/cbot.txt:29
#, no-wrap
msgid "Specific instructions for bots:"
msgstr "Instructions pour les robots:"
#. type: \t; header
#: ../E/cbot.txt:49
#: ../E/cbot.txt:52
#, no-wrap
msgid "Instructions about topology:"
msgstr "Instructions sur le terrain:"
#. type: \t; header
#: ../E/cbot.txt:55
#: ../E/cbot.txt:58
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Instructions spécifiques à certains robots:"
#. type: \t; header
#: ../E/cbot.txt:74
#: ../E/cbot.txt:77
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Instructions pour les bornes d'infomation:"
#. type: Plain text
#: ../E/cbot.txt:75
#: ../E/cbot.txt:78
#, no-wrap
msgid ""
"<code><a cbot|receive>receive</a> </code>Receives an information\n"
@ -182,13 +155,13 @@ msgstr ""
"<code><a cbot|delinfo>deleteinfo</a> </code>Supprime une information"
#. type: \t; header
#: ../E/cbot.txt:80
#: ../E/cbot.txt:83
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Instructions pour les classes:"
#. type: Plain text
#: ../E/cbot.txt:81
#: ../E/cbot.txt:84
#, no-wrap
msgid ""
"<code><a cbot|class>class</a> </code>Class declararion\n"
@ -208,13 +181,13 @@ msgstr ""
"<code><a cbot|this>this</a> </code>Référence l'instance courante"
#. type: \t; header
#: ../E/cbot.txt:89
#: ../E/cbot.txt:92
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Instructions pour les chaînes de caractères:"
#. type: Plain text
#: ../E/cbot.txt:90
#: ../E/cbot.txt:93
#, no-wrap
msgid ""
"<code><a cbot|strlen>strlen</a> </code>Gets string length\n"
@ -236,13 +209,13 @@ msgstr ""
"<code><a cbot|strlower>strlower</a> </code>Convertit en minuscules."
#. type: \t; header
#: ../E/cbot.txt:99
#: ../E/cbot.txt:102
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Instructions pour les fichiers:"
#. type: Plain text
#: ../E/cbot.txt:100
#: ../E/cbot.txt:103
#, no-wrap
msgid ""
"<code><a cbot|open>open</a> </code>Opens a file\n"
@ -260,13 +233,13 @@ msgstr ""
"<code><a cbot|deletef>deletefile</a> </code>Supprime un fichier"
#. type: \t; header
#: ../E/battles.txt:40 ../E/cbot.txt:123 ../E/freehelp.txt:4
#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Voir aussi"
#. type: Plain text
#: ../E/cbot.txt:124
#: ../E/cbot.txt:127
#, no-wrap
msgid "<a cbot|type>Types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot|type>Types</a> et <a cbot|category>catégories</a>."
@ -541,13 +514,13 @@ msgstr ""
"La Grande Migration va débuter très prochainement ..."
#. type: \t; header
#: ../E/cbot.txt:107
#: ../E/cbot.txt:110
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:56
#: ../E/cbot.txt:59
#, no-wrap
msgid ""
"<code><a cbot|grab>grab</a> </code>Picks up an object\n"
@ -564,7 +537,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:108
#: ../E/cbot.txt:111
#, no-wrap
msgid ""
"<code><a cbot|rand>rand</a> </code>Returns a random value\n"
@ -584,13 +557,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:68
#: ../E/cbot.txt:71
#, no-wrap
msgid "Instructions specific for some <a cbot|object>objects</a>:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:69
#: ../E/cbot.txt:72
#, no-wrap
msgid ""
"<code><a cbot|factory>factory</a> </code>Starts construction of a bot\n"
@ -600,7 +573,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:50
#: ../E/cbot.txt:53
#, no-wrap
msgid ""
"<code><a cbot|space>space</a> </code>Calculates a free space\n"
@ -610,7 +583,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:27
#: ../E/cbot.txt:30
#, no-wrap
msgid ""
"<code><a cbot|radar>radar</a> </code>Object detection\n"
@ -765,6 +738,81 @@ msgstr ""
msgid "There is much more options, but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
"<code><a cbot|switch>case</a> </code>One choice\n"
"<code><a cbot|switch>default</a> </code>Default choice\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ "<code><a cbot|extern>extern</a> </code>Indique le programme principal\n"
#~ "<code><a cbot|if>if</a> </code>Structure de choix\n"
#~ "<code><a cbot|if>else</a> </code>Structure de choix\n"
#~ "<code><a cbot|repeat>repeat</a> </code>Structure de répétition\n"
#~ "<code><a cbot|for>for</a> </code>Structure de répétition\n"
#~ "<code><a cbot|while>while</a> </code>Stucture de contrôle\n"
#~ "<code><a cbot|do>do</a> </code>Stucture de contrôle\n"
#~ "<code><a cbot|break>break</a> </code>Sortie d'un boucle\n"
#~ "<code><a cbot|continue>continue</a> </code>Continue une boucle\n"
#~ "<code><a cbot|return>return</a> </code>Sort d'une fonction\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Taille d'un tableau"
#~ msgid "There is much more options (as there should be in an strategy game), but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
#~ msgstr ""

View File

@ -102,48 +102,32 @@ msgstr ""
msgid "Instructions in the CBOT language:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:26
#: ../E/cbot.txt:29
#, no-wrap
msgid "Specific instructions for bots:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:49
#: ../E/cbot.txt:52
#, no-wrap
msgid "Instructions about topology:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:55
#: ../E/cbot.txt:58
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:74
#: ../E/cbot.txt:77
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:75
#: ../E/cbot.txt:78
#, no-wrap
msgid ""
"<code><a cbot|receive>receive</a> </code>Receives an information\n"
@ -153,13 +137,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:80
#: ../E/cbot.txt:83
#, no-wrap
msgid "Specific instructions for classes:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:81
#: ../E/cbot.txt:84
#, no-wrap
msgid ""
"<code><a cbot|class>class</a> </code>Class declararion\n"
@ -172,13 +156,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:89
#: ../E/cbot.txt:92
#, no-wrap
msgid "Specific instructions for strings:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:90
#: ../E/cbot.txt:93
#, no-wrap
msgid ""
"<code><a cbot|strlen>strlen</a> </code>Gets string length\n"
@ -192,13 +176,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:99
#: ../E/cbot.txt:102
#, no-wrap
msgid "Specific instructions for files:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:100
#: ../E/cbot.txt:103
#, no-wrap
msgid ""
"<code><a cbot|open>open</a> </code>Opens a file\n"
@ -210,13 +194,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/battles.txt:40 ../E/cbot.txt:123 ../E/freehelp.txt:4
#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:124
#: ../E/cbot.txt:127
#, no-wrap
msgid "<a cbot|type>Types</a> and <a cbot|category>categories</a>."
msgstr ""
@ -470,13 +454,13 @@ msgid "Colobot: Gold Edition developers"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:107
#: ../E/cbot.txt:110
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:56
#: ../E/cbot.txt:59
#, no-wrap
msgid ""
"<code><a cbot|grab>grab</a> </code>Picks up an object\n"
@ -493,7 +477,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:108
#: ../E/cbot.txt:111
#, no-wrap
msgid ""
"<code><a cbot|rand>rand</a> </code>Returns a random value\n"
@ -513,13 +497,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:68
#: ../E/cbot.txt:71
#, no-wrap
msgid "Instructions specific for some <a cbot|object>objects</a>:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:69
#: ../E/cbot.txt:72
#, no-wrap
msgid ""
"<code><a cbot|factory>factory</a> </code>Starts construction of a bot\n"
@ -529,7 +513,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:50
#: ../E/cbot.txt:53
#, no-wrap
msgid ""
"<code><a cbot|space>space</a> </code>Calculates a free space\n"
@ -539,7 +523,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:27
#: ../E/cbot.txt:30
#, no-wrap
msgid ""
"<code><a cbot|radar>radar</a> </code>Object detection\n"
@ -694,6 +678,70 @@ msgstr ""
msgid "There is much more options, but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
"<code><a cbot|switch>case</a> </code>One choice\n"
"<code><a cbot|switch>default</a> </code>Default choice\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid "There is much more options (as there should be in an strategy game), but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
#~ msgstr ""

View File

@ -118,58 +118,32 @@ msgstr "Stałe, podobnie jak <a cbot|category>kategorie</a>, wyświetlane są na
msgid "Instructions in the CBOT language:"
msgstr "Instrukcje w języku CBOT:"
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
"<code><a cbot|extern>extern</a> </code>Oznacza główną funkcję\n"
"<code><a cbot|if>if</a> </code>Struktura wyboru\n"
"<code><a cbot|if>else</a> </code>Struktura wyboru alternatywy\n"
"<code><a cbot|for>for</a> </code>Struktura pętli\n"
"<code><a cbot|while>while</a> </code>Struktura kontroli\n"
"<code><a cbot|do>do</a> </code>Struktura kontroli\n"
"<code><a cbot|break>break</a> </code>Wychodzi z pętli\n"
"<code><a cbot|continue>continue</a> </code>Kontynuuje pętlę\n"
"<code><a cbot|return>return</a> </code>Wychodzi z funkcji\n"
"<code><a cbot|sizeof>sizeof</a> </code>Rozmiar tablicy"
#. type: \t; header
#: ../E/cbot.txt:26
#: ../E/cbot.txt:29
#, no-wrap
msgid "Specific instructions for bots:"
msgstr "Instrukcje specyficzne dla robotów:"
#. type: \t; header
#: ../E/cbot.txt:49
#: ../E/cbot.txt:52
#, no-wrap
msgid "Instructions about topology:"
msgstr "Instrukcje związane z topologią terenu:"
#. type: \t; header
#: ../E/cbot.txt:55
#: ../E/cbot.txt:58
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr "Instrukcje specyficzne dla niektórych robotów:"
#. type: \t; header
#: ../E/cbot.txt:74
#: ../E/cbot.txt:77
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr "Instrukcje specyficzne dla stacji przekaźnikowych:"
#. type: Plain text
#: ../E/cbot.txt:75
#: ../E/cbot.txt:78
#, no-wrap
msgid ""
"<code><a cbot|receive>receive</a> </code>Receives an information\n"
@ -183,13 +157,13 @@ msgstr ""
"<code><a cbot|delinfo>deleteinfo</a> </code>Usuwa istniejącą informację"
#. type: \t; header
#: ../E/cbot.txt:80
#: ../E/cbot.txt:83
#, no-wrap
msgid "Specific instructions for classes:"
msgstr "Instrukcje specyficzne dla klas:"
#. type: Plain text
#: ../E/cbot.txt:81
#: ../E/cbot.txt:84
#, no-wrap
msgid ""
"<code><a cbot|class>class</a> </code>Class declararion\n"
@ -209,13 +183,13 @@ msgstr ""
"<code><a cbot|this>this</a> </code>Odwołanie do bieżącej instancji"
#. type: \t; header
#: ../E/cbot.txt:89
#: ../E/cbot.txt:92
#, no-wrap
msgid "Specific instructions for strings:"
msgstr "Instrukcje specyficzne dla łańcuchów:"
#. type: Plain text
#: ../E/cbot.txt:90
#: ../E/cbot.txt:93
#, no-wrap
msgid ""
"<code><a cbot|strlen>strlen</a> </code>Gets string length\n"
@ -237,13 +211,13 @@ msgstr ""
"<code><a cbot|strlower>strlower</a> </code>Zamienia litery na małe"
#. type: \t; header
#: ../E/cbot.txt:99
#: ../E/cbot.txt:102
#, no-wrap
msgid "Specific instructions for files:"
msgstr "Instrukcje specyficzne dla plików:"
#. type: Plain text
#: ../E/cbot.txt:100
#: ../E/cbot.txt:103
#, no-wrap
msgid ""
"<code><a cbot|open>open</a> </code>Opens a file\n"
@ -261,13 +235,13 @@ msgstr ""
"<code><a cbot|deletef>deletefile</a> </code>Usuwa plik"
#. type: \t; header
#: ../E/battles.txt:40 ../E/cbot.txt:123 ../E/freehelp.txt:4
#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "Zobacz również"
#. type: Plain text
#: ../E/cbot.txt:124
#: ../E/cbot.txt:127
#, no-wrap
msgid "<a cbot|type>Types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot|type>Typy</a> i <a cbot|category>kategorie</a>."
@ -547,13 +521,13 @@ msgstr ""
"Niebawem roczpocznie się Wielka Migracja na Nową Ziemię."
#. type: \t; header
#: ../E/cbot.txt:107
#: ../E/cbot.txt:110
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:56
#: ../E/cbot.txt:59
#, no-wrap
msgid ""
"<code><a cbot|grab>grab</a> </code>Picks up an object\n"
@ -570,7 +544,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:108
#: ../E/cbot.txt:111
#, no-wrap
msgid ""
"<code><a cbot|rand>rand</a> </code>Returns a random value\n"
@ -590,13 +564,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:68
#: ../E/cbot.txt:71
#, no-wrap
msgid "Instructions specific for some <a cbot|object>objects</a>:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:69
#: ../E/cbot.txt:72
#, no-wrap
msgid ""
"<code><a cbot|factory>factory</a> </code>Starts construction of a bot\n"
@ -606,7 +580,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:50
#: ../E/cbot.txt:53
#, no-wrap
msgid ""
"<code><a cbot|space>space</a> </code>Calculates a free space\n"
@ -616,7 +590,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:27
#: ../E/cbot.txt:30
#, no-wrap
msgid ""
"<code><a cbot|radar>radar</a> </code>Object detection\n"
@ -771,6 +745,80 @@ msgstr ""
msgid "There is much more options, but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
"<code><a cbot|switch>case</a> </code>One choice\n"
"<code><a cbot|switch>default</a> </code>Default choice\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ "<code><a cbot|extern>extern</a> </code>Oznacza główną funkcję\n"
#~ "<code><a cbot|if>if</a> </code>Struktura wyboru\n"
#~ "<code><a cbot|if>else</a> </code>Struktura wyboru alternatywy\n"
#~ "<code><a cbot|for>for</a> </code>Struktura pętli\n"
#~ "<code><a cbot|while>while</a> </code>Struktura kontroli\n"
#~ "<code><a cbot|do>do</a> </code>Struktura kontroli\n"
#~ "<code><a cbot|break>break</a> </code>Wychodzi z pętli\n"
#~ "<code><a cbot|continue>continue</a> </code>Kontynuuje pętlę\n"
#~ "<code><a cbot|return>return</a> </code>Wychodzi z funkcji\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Rozmiar tablicy"
#~ msgid "There is much more options (as there should be in an strategy game), but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
#~ msgstr ""

View File

@ -114,48 +114,32 @@ msgstr ""
msgid "Instructions in the CBOT language:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:26
#: ../E/cbot.txt:29
#, no-wrap
msgid "Specific instructions for bots:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:49
#: ../E/cbot.txt:52
#, no-wrap
msgid "Instructions about topology:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:55
#: ../E/cbot.txt:58
#, no-wrap
msgid "Instructions specific to some bots:"
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:74
#: ../E/cbot.txt:77
#, no-wrap
msgid "Specific instructions for exchange posts:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:75
#: ../E/cbot.txt:78
#, no-wrap
msgid ""
"<code><a cbot|receive>receive</a> </code>Receives an information\n"
@ -165,13 +149,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:80
#: ../E/cbot.txt:83
#, no-wrap
msgid "Specific instructions for classes:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:81
#: ../E/cbot.txt:84
#, no-wrap
msgid ""
"<code><a cbot|class>class</a> </code>Class declararion\n"
@ -184,13 +168,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:89
#: ../E/cbot.txt:92
#, no-wrap
msgid "Specific instructions for strings:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:90
#: ../E/cbot.txt:93
#, no-wrap
msgid ""
"<code><a cbot|strlen>strlen</a> </code>Gets string length\n"
@ -204,13 +188,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:99
#: ../E/cbot.txt:102
#, no-wrap
msgid "Specific instructions for files:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:100
#: ../E/cbot.txt:103
#, no-wrap
msgid ""
"<code><a cbot|open>open</a> </code>Opens a file\n"
@ -222,13 +206,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/battles.txt:40 ../E/cbot.txt:123 ../E/freehelp.txt:4
#: ../E/battles.txt:40 ../E/cbot.txt:126 ../E/freehelp.txt:4
#, no-wrap
msgid "See also"
msgstr "См. также"
#. type: Plain text
#: ../E/cbot.txt:124
#: ../E/cbot.txt:127
#, no-wrap
msgid "<a cbot|type>Types</a> and <a cbot|category>categories</a>."
msgstr ""
@ -508,13 +492,13 @@ msgstr ""
"Большое переселение на Терра Нову начнется очень скоро."
#. type: \t; header
#: ../E/cbot.txt:107
#: ../E/cbot.txt:110
#, no-wrap
msgid "Mathematical functions:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:56
#: ../E/cbot.txt:59
#, no-wrap
msgid ""
"<code><a cbot|grab>grab</a> </code>Picks up an object\n"
@ -531,7 +515,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:108
#: ../E/cbot.txt:111
#, no-wrap
msgid ""
"<code><a cbot|rand>rand</a> </code>Returns a random value\n"
@ -551,13 +535,13 @@ msgid ""
msgstr ""
#. type: \t; header
#: ../E/cbot.txt:68
#: ../E/cbot.txt:71
#, no-wrap
msgid "Instructions specific for some <a cbot|object>objects</a>:"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:69
#: ../E/cbot.txt:72
#, no-wrap
msgid ""
"<code><a cbot|factory>factory</a> </code>Starts construction of a bot\n"
@ -567,7 +551,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:50
#: ../E/cbot.txt:53
#, no-wrap
msgid ""
"<code><a cbot|space>space</a> </code>Calculates a free space\n"
@ -577,7 +561,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:27
#: ../E/cbot.txt:30
#, no-wrap
msgid ""
"<code><a cbot|radar>radar</a> </code>Object detection\n"
@ -732,6 +716,70 @@ msgstr ""
msgid "There is much more options, but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
msgstr ""
#. type: Plain text
#: ../E/cbot.txt:15
#, no-wrap
msgid ""
"<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
"<code><a cbot|if>if</a> </code>Choice structure\n"
"<code><a cbot|if>else</a> </code>Alternative choice structure\n"
"<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
"<code><a cbot|switch>case</a> </code>One choice\n"
"<code><a cbot|switch>default</a> </code>Default choice\n"
"<code><a cbot|for>for</a> </code>Loop structure\n"
"<code><a cbot|while>while</a> </code>Control structure\n"
"<code><a cbot|do>do</a> </code>Control structure\n"
"<code><a cbot|break>break</a> </code>Exit from a loop\n"
"<code><a cbot|continue>continue</a> </code>Continues the loop\n"
"<code><a cbot|return>return</a> </code>Exit from a function\n"
"<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|switch>switch</a> </code>Multiple choice structure\n"
#~ "<code><a cbot|switch>case</a> </code>One choice\n"
#~ "<code><a cbot|switch>default</a> </code>Default choice\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid ""
#~ "<code><a cbot|extern>extern</a> </code>Indicate the main function\n"
#~ "<code><a cbot|if>if</a> </code>Choice structure\n"
#~ "<code><a cbot|if>else</a> </code>Alternative choice structure\n"
#~ "<code><a cbot|for>for</a> </code>Loop structure\n"
#~ "<code><a cbot|while>while</a> </code>Control structure\n"
#~ "<code><a cbot|do>do</a> </code>Control structure\n"
#~ "<code><a cbot|break>break</a> </code>Exit from a loop\n"
#~ "<code><a cbot|continue>continue</a> </code>Continues the loop\n"
#~ "<code><a cbot|return>return</a> </code>Exit from a function\n"
#~ "<code><a cbot|sizeof>sizeof</a> </code>Size of an array"
#~ msgstr ""
#~ msgid "There is much more options (as there should be in an strategy game), but this is the basis. Read documentation, play the game and think creatively to come up with new ideas. Good luck and have fun!"
#~ msgstr ""