Skip to content

Commit

Permalink
Merge branch 'dev' into factory-example
Browse files Browse the repository at this point in the history
  • Loading branch information
tomangelo2 authored Aug 18, 2024
2 parents 7bb58c1 + fa80847 commit 8ef63e2
Show file tree
Hide file tree
Showing 33 changed files with 246 additions and 131 deletions.
10 changes: 5 additions & 5 deletions help/bots/po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ msgstr "botbc"
#: ../E/botbc.txt:3
#, no-wrap
msgid "Tracked bot equipped with a neutron gun."
msgstr "Pásový robot vybavený neutronovou pistolí."
msgstr "Pásový robot vybavený neutronovým dělem."

#. type: Plain text
#: ../E/botbc.txt:5 ../E/botbj.txt:5 ../E/botbr.txt:5 ../E/botbs.txt:5
Expand Down Expand Up @@ -1013,7 +1013,7 @@ msgstr "Pásoví roboti mohou vyjet i příkré svahy, ale jsou pomalí a mají
#: ../E/botbc.txt:26 ../E/botbj.txt:26 ../E/botbr.txt:26 ../E/botbs.txt:26
#, no-wrap
msgid "To program the neutron gun, use <code><a cbot|build>build</a></code>."
msgstr "Pro ovládání neutronové pistole používejte příkaz <code><a cbot|build>build</a></code>."
msgstr "Pro ovládání neutronového děla používejte příkaz <code><a cbot|build>build</a></code>."

#. type: Plain text
#: ../E/botbc.txt:29
Expand All @@ -1037,7 +1037,7 @@ msgstr "botbj"
#: ../E/botbj.txt:3
#, no-wrap
msgid "Jet propelled flying bot equipped with a neutron gun."
msgstr "Létající robot s tryskovým pohonem vybavený neutronovou pistolí."
msgstr "Létající robot s tryskovým pohonem vybavený neutronovým dělem."

#. type: Plain text
#: ../E/botbj.txt:21
Expand Down Expand Up @@ -1067,7 +1067,7 @@ msgstr "botbr"
#: ../E/botbr.txt:3
#, no-wrap
msgid "Wheeled bot equipped with a neutron gun."
msgstr "Pojízdný robot na kolečkách vybavený neutronovou pistolí."
msgstr "Pojízdný robot na kolečkách vybavený neutronovým dělem."

#. type: Plain text
#: ../E/botbr.txt:21
Expand Down Expand Up @@ -1097,7 +1097,7 @@ msgstr "botbs"
#: ../E/botbs.txt:3
#, no-wrap
msgid "Ant-legged creeping bot equipped with a neutron gun."
msgstr "Šestinohý chodící robot vybavený neutronovou pistolí."
msgstr "Šestinohý chodící robot vybavený neutronovým dělem."

#. type: Plain text
#: ../E/botbs.txt:21
Expand Down
5 changes: 3 additions & 2 deletions help/cbot/E/expr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Binary operators below are working with fundamental number types (\c;\l;int\u cb
\c;-\n; subtraction
\c;*\n; multiplication
\c;/\n; division
\c;%\n; remainder of the division (only for the type \c;\l;int\u cbot\int;\n;)
\c;%\n; remainder of the division (works for \c;\l;int\u cbot\int;\n; as well as \c;\l;float\u cbot\float;\n;)

\t;Notes
o The \c;*\n;, \c;/\n;, \c;%\n; are all stronger than \c;+\n; and \c;-\n;.
Expand All @@ -74,6 +74,7 @@ o The result \l;type\u cbot\type; is always \c;\l;float\u cbot\float;\n;. If \c;
\s;
\s; int i = 13 % 5; // i == 3
\s; int i = -8 % 3; // i == -2
\s; float f = -4.5 % 2.75; // f == -1.75
\s;
\s; float f = sin(90) * i; // f == -2.0
\s;
Expand All @@ -91,7 +92,7 @@ is equivalent to
\c;-=\n; subtraction
\c;*=\n; multiplication
\c;/=\n; division
\c;%=\n; remainder of the division (only for the type \c;\l;int\u cbot\int;\n;)
\c;%=\n; remainder of the division

\b;String concatenation
If at least one of the values used with the \c;+\n; operator is a \l;string\u cbot\string;, then the operation of concatenation is performed. The result of the operator is then a string, which is created by joining end-to-end the string and the other value. If the other value is not a string, then it is converted to string beforehand.
Expand Down
4 changes: 4 additions & 0 deletions help/cbot/E/object.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Use this type for variables that contain the characteristics of an object, be it
\c;object object.load \n;Object carried by the bot
\c;\l;int\u cbot\int; object.team \n;The object's team (see \l;code battles\u battles;)
\c;\l;point\u cbot\point; object.velocity \n;Velocity of the object
\c;\l;bool\u cbot\bool; object.dead \n;Is the alien dead?

Also, some objects have additional methods (instructions). See them in \l;the main list\u cbot; in the \c;"Instructions specific for some objects" section.

Expand Down Expand Up @@ -63,6 +64,9 @@ The bot's team. Used in \l;code battles\u battles;. If the object has no team as
\s;\c;velocity\n;
Current velocity of the object. Should be treated as a three-dimensional vector.

\s;\c;dead\n;
True if the object is an alien and was recently killed (while the death animation is playing). Note that accessing this property or any other property after the death animation finishes will cause an error that stops the program.

\b;Examples
The type \c;object\n; returns the special value \c;\l;null\u cbot\null;\n; when the object does not exist. For example:
\c;
Expand Down
Loading

0 comments on commit 8ef63e2

Please sign in to comment.