colobot-data/levels/exercises/chapter002/level002/po/cs.po

139 lines
6.5 KiB
Plaintext

# This file is part of the Colobot: Gold Edition source code
# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam
# This file is distributed under the same license as the Colobot package.
# next_ghost <next_ghost@quick.cz>, 2018.
msgid ""
msgstr ""
"Project-Id-Version: 0.1.11\n"
"POT-Creation-Date: DATE\n"
"PO-Revision-Date: 2018-03-04 20:31+01\n"
"Last-Translator: next_ghost <next_ghost@quick.cz>\n"
"Language-Team: Czech <next_ghost@quick.cz>\n"
"Language: Czech\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n"
"X-Language: cs_CZ\n"
"X-Source-Language: en_US\n"
#. type: Title-text
#: ../scene.txt:1
#, no-wrap
msgid "Flying tower 1"
msgstr "Létající věž 1"
#. type: Resume-text
#: ../scene.txt:2
#, no-wrap
msgid "Make a flying defense tower out of a winged shooter."
msgstr "Udělejte z létajícího kanónu létající obrannou věž."
#. type: ScriptName-text
#: ../scene.txt:3
#, no-wrap
msgid "Move"
msgstr "Obrana1"
#. type: \b; header
#: ../help/help.E.txt:1
#, no-wrap
msgid "Objective"
msgstr "Úkol"
#. type: Plain text
#: ../help/help.E.txt:2
#, no-wrap
msgid "As a defense against ants attacking from all sides, adapt the program <code>Spider2</code> in order to fly at a given altitude."
msgstr "Na obranu proti mravencům útočícím ze všech stran upravte program <code>Pavouk2</code>, aby létal v zadané výšce."
#. type: \t; header
#: ../help/help.E.txt:4
#, no-wrap
msgid "Program"
msgstr "Program"
#. type: Plain text
#: ../help/help.E.txt:5
#, no-wrap
msgid "The program necessary for this task is somewhat similar to the program <code>Spider2</code> that looks for the closest ant, turns towards it and fires:"
msgstr "Program vhodný pro tento úkol je z části podobný jako <code>Pavouk2</code>, který najde nejbližšího mravence, otočí se k němu a vystřelí:"
#. type: Source code
#: ../help/help.E.txt:7
#, no-wrap
msgid ""
"extern void object::Spider2()\n"
"{\t\n"
"\tobject item;\n"
"\t\n"
"\twhile (true)\n"
"\t{\n"
"\t\titem = radar(AlienSpider);\n"
"\t\tturn(direction(item.position));\n"
"\t\tfire(1);\n"
"\t}\n"
"}"
msgstr ""
"extern void object::Pavouk2()\n"
"{\t\n"
"\tobject item;\n"
"\t\n"
"\twhile (true)\n"
"\t{\n"
"\t\titem = radar(AlienSpider);\n"
"\t\tturn(direction(item.position));\n"
"\t\tfire(1);\n"
"\t}\n"
"}"
#. type: Plain text
#: ../help/help.E.txt:19
#, no-wrap
msgid "You can copy-paste it to the editor, and adapt it. Replace <c/>radar(AlienSpider);<n/> by <c/>radar(AlienAnt);<n/>, and write before the <code>while</code> loop another loop that activates the jet beneath the <a object|botfj>winged shooter</a> until the bot reaches an altitude of 20 meters."
msgstr "Můžete si ho zkopírovat do editoru a upravit ho. Přepište <c/>radar(AlienSpider);<n/> na <c/>radar(AlienAnt);<n/> a před cyklus <code>while</code> přidejte další cyklus, který zapne tryskový motor <a object|botfj>létajícího kanónu</a>, dokud robot nevystoupá do výšky 20 metrů."
#. type: Plain text
#: ../help/help.E.txt:21
#, no-wrap
msgid "The instruction <code><a cbot|jet>jet</a>()</code> controls the jet beneath winged bots. The number in brackets must range between <code>-1</code> and <code>1</code>.<c/> jet(1);<n/> moves the bot upward with maximum speed.<c/> jet(-1);<n/> moves the bot downward with maximum speed, and <c/>jet(0);<n/> stabilizes the altitude. As the bot must reach a precise altitude, move it upward slowly with <c/>jet(0.2);<n/>, wait until it has reached the desired height, then stabilize the altitude with <c/>jet(0);<n/>."
msgstr "Příkaz <code><a cbot|jet>jet</a>()</code> ovládá tryskový motor létajících robotů. Číslo v závorkách musí být v rozsahu <code>-1</code> až <code>+1</code>. <c/>jet(1);<n/> přikazuje robotovi plnou rychlostí stoupat. <c/>jet(-1);<n/> přikazuje robotovi padat volným pádem a <c/>jet(0);<n/> znamená udržovat aktuální výšku. Protože chcete robota poslat do přesné výšky, nechte ho stoupat pomalu příkazem <c/>jet(0.2);<n/>, počkejte na dosažení zadané výšky, a pak zastavte stoupání příkazem <c/>jet(0);<n/>."
#. type: Plain text
#: ../help/help.E.txt:23
#, no-wrap
msgid "In order to \"wait until it has reached the desired height\", we need a conditional loop: the instructions inside the loop will be repeated only as long as a certain condition is true. The altitude of the bot is given by <code>position.z</code>. We already saw that <code>position</code> gives the position of the bot. And a position is given by the three coordinates x, y and z: the x-axis is the axis west-east, the y-axis is the axis south-north, and the z-axis is the vertical axis. Therefore we must wait while <code>position.z</code> is smaller than 20:"
msgstr "Abyste \"počkali na dosažení zadané výšky,\" budete potřebovat podmíněný cyklus: příkazy uvnitř cyklu se budou opakovat pouze dokud platí určitá podmínka. Nadmořskou výšku robota udává výraz <code>position.z</code>. Už jsme probírali, že výraz <code>position</code> udává polohu robota. A poloha se skládá ze tří složek: x, y, z. Osa X leží ve směru západ-východ, osa Y leží ve směru jih-sever a Z je svislá osa. Tedy musíme čekat, dokud <code>position.z</code> je menší než 20:"
#. type: Source code
#: ../help/help.E.txt:25
#, no-wrap
msgid ""
"\twhile (position.z < 20)\n"
"\t{\n"
"\t\twait(0.2);\n"
"\t}"
msgstr ""
"\twhile (position.z < 20)\n"
"\t{\n"
"\t\twait(0.2);\n"
"\t}"
#. type: Plain text
#: ../help/help.E.txt:30
#, no-wrap
msgid "After waiting 0.2 seconds, the program will check if the altitude is still below 20 meters. If this is the case, it will wait a little more, if not, the program continues after the loop, i.e. after the closing brace <code>}</code>. Do not forget after the loop to stabilize the altitude with <c/>jet(0);<n/>."
msgstr "Program počká 0,2 sekundy a znovu se podívá, jestli je výška stále menší než 20 metrů. Pokud ano, počká ještě chvíli. Pokud ne, ukončí cyklus, t.j. začne vykonávat příkazy za pravou složenou závorkou: <code>}</code>. Nezapomeňte po skončení cyklu zastavit stoupání příkazem <c/>jet(0);<n/>."
#. type: \t; header
#: ../help/help.E.txt:32
#, no-wrap
msgid "See also"
msgstr "Užitečné odkazy"
#. type: Plain text
#: ../help/help.E.txt:33
#, no-wrap
msgid "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
msgstr "<a cbot>Programování</a>, <a cbot|type>datové typy</a> a <a cbot|category>kategorie</a>."