# This file is part of the Colobot: Gold Edition source code # Copyright (C) 2001-2018, Daniel Roux, EPSITEC SA & TerranovaTeam # This file is distributed under the same license as the Colobot package. # next_ghost , 2018. msgid "" msgstr "" "Project-Id-Version: 0.1.11\n" "POT-Creation-Date: DATE\n" "PO-Revision-Date: 2018-08-02 22:08+02\n" "Last-Translator: next_ghost \n" "Language-Team: Czech \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 "Function" msgstr "Funkce" #. type: Resume-text #: ../scene.txt:2 #, no-wrap msgid "Create a function to move a bot." msgstr "Vytvořte funkci pro projetí zadané trasy." #. type: ScriptName-text #: ../scene.txt:3 #, no-wrap msgid "Move" msgstr "Trasa" #. type: \b; header #: ../help/help.E.txt:1 #, no-wrap msgid "Exercise" msgstr "Cvičení" #. type: Plain text #: ../help/help.E.txt:2 #, no-wrap msgid "The bot must pass over all the blue crosses on the ground. The way that must be covered is made of two squares. The first one measures 15 meters, the second 25 meters." msgstr "Robot musí projet přes všechny modré křížky na zemi. Trasa se skládá ze dvou čtverců. První čtverec měří 15 metrů, druhý 25 metrů." #. type: Image filename #: ../help/help.E.txt:4 #, no-wrap msgid "tproc1a" msgstr "tproc1a" #. type: \b; header #: ../help/help.E.txt:5 #, no-wrap msgid "General principle" msgstr "Obecný postup" #. type: Plain text #: ../help/help.E.txt:6 #, no-wrap msgid "In order to solve this problem, the most efficient solution consists in creating a function that instructs the bot to move on a square shape of a certain size. The main program becomes then very simple:" msgstr "Nejjednodušším řešením tohoto úkolu je vytvořit funkci, která robota pošle objet čtverec o zadané délce. Hlavní program pak bude velmi jednoduchý:" #. type: Source code #: ../help/help.E.txt:8 #, no-wrap msgid "" "\textern void object::Function3( )\n" "\t{\n" "\t\tSquare(15);\n" "\t\tSquare(25);\n" "\t}" msgstr "" "\textern void object::Trasa( )\n" "\t{\n" "\t\tSquare(15);\n" "\t\tSquare(25);\n" "\t}" #. type: \b; header #: ../help/help.E.txt:14 #, no-wrap msgid "Useful instructions" msgstr "Užitečné příkazy" #. type: Plain text #: ../help/help.E.txt:15 #, no-wrap msgid "" "for loop to repeat some instructions\n" "move to move the bot\n" "turn to turn the bot" msgstr "" "for cyklus pro opakování několika příkazů\n" "move pro popojetí s robotem\n" "turn pro otočení robota" #. type: \t; header #: ../help/help.E.txt:19 #, no-wrap msgid "See also" msgstr "Užitečné odkazy" #. type: Plain text #: ../help/help.E.txt:20 #, no-wrap msgid "Programming, types and categories." msgstr "Programování, datové typy a kategorie."