1# SOME DESCRIPTIVE TITLE
2# Copyright (C) YEAR Free Software Foundation, Inc.
3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5msgid ""
6msgstr ""
7"Project-Id-Version: PACKAGE VERSION\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: DATE\n"
10"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12"Language-Team: LANGUAGE <LL@li.org>\n"
13"Language: de\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"X-Generator: Translate Toolkit 1.11.0\n"
18
19#. type: Title-text
20#: ../scene.txt:1
21#, no-wrap
22msgid "Spiral"
23msgstr "Spirale"
24
25#. type: Resume-text
26#: ../scene.txt:2
27#, no-wrap
28msgid "Create a procedure in order to teach your bot to perform a spiral."
29msgstr "Definieren Sie eine Funktion, um dem Roboter das Spiralen leichter zu machen."
30
31#. type: ScriptName-text
32#: ../scene.txt:3
33#, no-wrap
34msgid "Move"
35msgstr "Funktion2"
36
37#. type: \b; header
38#: ../help/help.E.txt:1
39#, no-wrap
40msgid "Exercise"
41msgstr "Übung"
42
43#. type: Plain text
44#: ../help/help.E.txt:2
45#, no-wrap
46msgid "Follow the way in form of a spiral. The bot must move 2 times 25m forward and turn, then move 2 times 20m forward and turn, and so on."
47msgstr "Folgen Sie dem spiralförmigen Weg. Der Roboter muss sich 2 mal um 25m nach vorn bewegen und sich anschließend drehen, dann 2 mal 20m vorwärts und drehen, usw."
48
49#. type: Image filename
50#: ../help/help.E.txt:3
51#, no-wrap
52msgid "tproc2"
53msgstr "tproc2"
54
55#. type: \b; header
56#: ../help/help.E.txt:4
57#, no-wrap
58msgid "Function"
59msgstr "Die Funktion"
60
61#. type: Plain text
62#: ../help/help.E.txt:5
63#, no-wrap
64msgid "You will have noticed that the way is made of \"L\"-shaped parts that are fit one into another. The first one (dark blue) measures two times 25 meters. The second one (light blue) measures 5 meters less. Let us start with writing the <a cbot|function>function</a> that will move the bot on a \"L\"-shaped part whose length will be given as a parameter:"
65msgstr "Sie werden bemerkt haben, dass der Weg aus L-förmigen Teilen besteht, die ineinander passen. Das erste (dunkelblau) misst zwei mal 25 Meter. Das zweite (hellblau) misst 5 Meter weniger. Fangen wir damit an, die <a cbot|function>Funktion</a> zu schreiben, die den Roboter auf einem L-förmigen Teil entlang bewegt, dessen Länge als Parameter übergeben wird:"
66
67#. type: Source code
68#: ../help/help.E.txt:7
69#, no-wrap
70msgid ""
71"void object::Part(float length)\n"
72"{\n"
73"\tfor ( int i=0 ; i<2 ; i=i+1 )\n"
74"\t{\n"
75"\t\tmove(length);\n"
76"\t\tturn(90);\n"
77"\t}\n"
78"}"
79msgstr ""
80"void object::Part(<a cbot|type>float</a> length)\n"
81"{\n"
82"\t<a cbot|for>for</a> ( int i=0 ; i<2 ; i=i+1 )\n"
83"\t{\n"
84"\t\t<a cbot|move>move</a>(length);\n"
85"\t\t<a cbot|turn>turn</a>(90);\n"
86"\t}\n"
87"}"
88
89#. type: Plain text
90#: ../help/help.E.txt:16
91#, no-wrap
92msgid "Now you just need to write the main function, that will call the function <code>Part</code>. At the beginning the variable <code>rest</code> will be set to 25m. The <code>while</code> loop will then repeat the instructions inside the block as long as <code>rest</code> is greater than zero. Inside the loop, first call the function <code>Part</code> (see above), then subtract 5m to the length of the L."
93msgstr "Nun müssen Sie nur noch die Hauptfunktion schreiben, welche einfach die Funktion <code>Part</code> aufruft. Zu Beginn setzen wir die Variable <code>rest</code> auf 25m. Die <code><a cbot|while>while</a></code>-Schleife wiederholt die Anweisungen innerhalb des Blockes, solange <code>rest</code> größer als Null ist. Innerhalb der Schleife wird zunächst die Funktion <code>Part</code> (siehe oben), aufgerufen und von <code>rest</code> werden 5m subtrahiert."
94
95#. type: Source code
96#: ../help/help.E.txt:18
97#, no-wrap
98msgid ""
99"extern void object::Function2( )\n"
100"{\n"
101"\tfloat\trest = 25;\n"
102"\twhile ( rest > 0 )\n"
103"\t{\n"
104"\t\tPart(rest);\n"
105"\t\trest = rest-5;\n"
106"\t}\n"
107"}"
108msgstr ""
109"extern void object::Function2( )\n"
110"{\n"
111"\tfloat\trest = 25;\n"
112"\twhile ( rest > 0 )\n"
113"\t{\n"
114"\t\tPart(rest);\n"
115"\t\trest = rest-5;\n"
116"\t}\n"
117"}"
118
119#. type: Plain text
120#: ../help/help.E.txt:28
121#, no-wrap
122msgid "The function <code>Part</code> will be called a last time with the value <code>5</code>. Then the expression <code>rest-5</code> will set the value of the variable <code>rest</code> to zero, and the <code>while</code> loop will stop."
123msgstr "Die Funktion <code>Part</code> wird zuletzt mit dem Wert <code>5</code> aufgerufen. Danach setzt der Ausdruck <code>rest-5</code> den Wert der Variablen <code>rest</code> auf Null, und die <code><a cbot|while>while</a></code>-Schleife wird beendet."
124
125#. type: \b; header
126#: ../help/help.E.txt:30
127#, no-wrap
128msgid "Remark"
129msgstr "Hinweis"
130
131#. type: Plain text
132#: ../help/help.E.txt:31
133#, no-wrap
134msgid "You will have noticed that in the previous exercise, the main function was at the beginning of the program, whereas in this exercise, it is at the end of the program, after the function <code>Part</code>. The rank order of the functions in the program does not matter, you can write a program either way."
135msgstr "Sie werden bemerkt haben, dass in der vorhergehenden Übung die Hauptfunktion ganz am Anfang des Programmes stand, wogegen sie sich in diesem Beispiel am Ende befindet; hinter der Funktion <code>Part</code>. Die Reihenfolge der Funktionen im Programm ist gleichgültig. Sie können ein Programm anordnen, wie Sie wollen."
136
137#. type: \t; header
138#: ../help/help.E.txt:33
139#, no-wrap
140msgid "See also"
141msgstr "Siehe auch"
142
143#. type: Plain text
144#: ../help/help.E.txt:34
145#, no-wrap
146msgid "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
147msgstr "Die <a cbot>CBOT-Sprache</a>, die <a cbot|type>Variablentypen</a> und die <a cbot|category>Kategorien</a>."
148